Date

“String” Methods

_.capitalize([string=''])

source npm package

Converts the first character of string to upper case and the remaining to lower case.

引入版本

3.0.0

参数
[string=''] (string) : The string to capitalize.

返回值
(string) : Returns the capitalized string.

示例
_.capitalize('FRED');
// => 'Fred'