Array
Collection
Date
Function
Lang
Math
Object
Seq
String
Util
Properties
Methods
“String” Methods
_.capitalize([string=''])
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'