4 lines
116 B
TypeScript
4 lines
116 B
TypeScript
|
export const capitalize = (string: string): string => {
|
||
|
return string.charAt(0).toUpperCase() + string.slice(1)
|
||
|
}
|