* Nuxt 3.17.4 and other dependencies updated * Temporary fix (maybe) of the Inline Code * Update nuxt to version 4
7 lines
202 B
TypeScript
7 lines
202 B
TypeScript
export function makeFirstCharUpper(val: string) {
|
|
if (val === '') return val
|
|
const firstChar = val.at(0)?.toLocaleUpperCase() || ''
|
|
const otherChar = val.slice(1)
|
|
return firstChar + otherChar
|
|
}
|