feat: Create the capitalize() helper

This commit is contained in:
2025-06-11 20:04:48 +02:00
parent c3673446ad
commit b6f44f938a

View File

@@ -614,6 +614,10 @@
fillCharacterRoster(); fillCharacterRoster();
}; };
const capitalize = (str) => {
return String(str).charAt(0).toUpperCase() + String(str).slice(1);
};
document.addEventListener( document.addEventListener(
"DOMContentLoaded", "DOMContentLoaded",
() => { () => {