Parameters

This method accepts single parameter as mentioned above and described below:

  • string: This parameter holds the string that need to convert first character to upper case character and remaining to lower case characters.

Lodash _.capitalize() Method

Lodash _.capitalize() method is used to convert the first character of string to upper case and the remaining to lower case.  

Similar Reads

Syntax:

_.capitalize([string=''..."])...

Parameters:

This method accepts single parameter as mentioned above and described below:...

Return Value:

This method returns the capitalize string....