mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
4 lines
116 B
TypeScript
4 lines
116 B
TypeScript
|
export const capitalize = (string: string): string => {
|
||
|
return string.charAt(0).toUpperCase() + string.slice(1)
|
||
|
}
|