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