Uppercases the first character of a string, leaving the rest unchanged.
The input string.
capitalize("hello world") // => "Hello world"capitalize("") // => "" Copy
capitalize("hello world") // => "Hello world"capitalize("") // => ""
Uppercases the first character of a string, leaving the rest unchanged.