capitalize

String
since 3.0.0

Arguments

  • string The string to capitalize.

Returns

string the capitalized string.

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

Example of Lodash _.capitalize

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