4.17.11
3.10.1
2.4.2
1.3.1
_.capitalize([string=''])
Converts the first character of string
to upper case and the remaining
to lower case.
Since
3.0.0
Arguments
argument
[string='']
type
string
description
The string to capitalize.
Returns
(array)
Example
_.capitalize("FRED");
// => 'Fred'
_.capitalize("FRED");
// => 'Fred'