Converts the first character of string to upper case.
string
The string to convert.
Returns the converted string.
5.5.1
camelCase, kebabCase, lowerCase, snakeCase, startCase, upperCase
upperFirst('fred')// => 'Fred'upperFirst('FRED')// => 'FRED' Copy
upperFirst('fred')// => 'Fred'upperFirst('FRED')// => 'FRED'
Converts the first character of
string
to upper case.