Converts the first character of string to upper case and the remaining to lower case.
string
The string to capitalize.
Returns the capitalized string.
5.3.0
capitalize('FRED')// => 'Fred' Copy
capitalize('FRED')// => 'Fred'
Converts the first character of
string
to upper case and the remaining to lower case.