4 lines
99 B
TypeScript
4 lines
99 B
TypeScript
|
export function capitalize(str: string) {
|
||
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
||
|
}
|