From b6f44f938a9011df9e5ea128b4d3e94d953f7bab Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 11 Jun 2025 20:04:48 +0200 Subject: [PATCH] feat: Create the capitalize() helper --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index b8c3fbf..2efc239 100644 --- a/index.html +++ b/index.html @@ -614,6 +614,10 @@ fillCharacterRoster(); }; + const capitalize = (str) => { + return String(str).charAt(0).toUpperCase() + String(str).slice(1); + }; + document.addEventListener( "DOMContentLoaded", () => {