Capitalizes the first letter of a string and lowercases the rest.
The string to be capitalized.
The capitalized string.
capitalize("hello WORLD"); // "Hello world" Copy
capitalize("hello WORLD"); // "Hello world"
Capitalizes the first letter of a string and lowercases the rest.