![]() |
VOOZH | about |
Lodash _.camelCase() method is used to convert a string into a camel case string. The string can be space-separated, dash-separated, or can be separated by underscores.
_.camelCase(string);This method returns the camel case string
Example 1: In this example, we are changing the string which is space-separated and dash-separated into the camel case using the _.camelCase() method.
Output:
geeksForGeeks
gfgGeeks
Example 2: In this example, we are changing the string which is underscore-separated into the camel case using the _.camelCase() method.
Output:
geeksForGeeks
gfgGeeks