upperFirst

String
since 4.0.0

Arguments

  • string The string to convert.

Returns

string the converted string.

Converts the first character of string to upper case.

Example of Lodash _.upperFirst

_.upperFirst('fred');
// => 'Fred'

_.upperFirst('FRED');
// => 'FRED'