Capitalizes the first letter of a string and converts the rest to lowercase.
the input string
the capitalized string
capitalize('hello world'); // 'Hello world' Copy
capitalize('hello world'); // 'Hello world'
Generated using TypeDoc
Capitalizes the first letter of a string and converts the rest to lowercase.