feat: Create the capitalize() helper
This commit is contained in:
@@ -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",
|
||||||
() => {
|
() => {
|
||||||
|
Reference in New Issue
Block a user