Skip to content
Functionutilsv0.9.0

capitalize

Returns the word with its first letter capitalized and the rest in lowercase.

capitalize(word: string): string