update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user