This commit is contained in:
2025-12-20 18:46:45 +08:00
parent 5163e756f0
commit 547fd99c23
73 changed files with 15635 additions and 1924 deletions

View File

@@ -1,6 +1,6 @@
export function makeFirstCharUpper(val: string) {
if (val === '') return val
const firstChar = val.at(0)?.toLocaleUpperCase() || ''
const otherChar = val.slice(1)
return firstChar + otherChar
if (val === "") return val;
const firstChar = val.at(0)?.toLocaleUpperCase() || "";
const otherChar = val.slice(1);
return firstChar + otherChar;
}