4 lines
97 B
TypeScript
4 lines
97 B
TypeScript
export function titleCase(str: string) {
|
|
return str.charAt(0).toUpperCase() + str.slice(1)
|
|
}
|