_.camelCase

_.camelCase([string=''])

source npm package

Converts string to camel case.

Since

3.0.0

Arguments

  1. [string=''] (string): The string to convert.

Returns

(string): Returns the camel cased string.

Example

_.camelCase('Foo Bar');
// => 'fooBar'
 
_.camelCase('--foo-bar--');
// => 'fooBar'
 
_.camelCase('__FOO_BAR__');
// => 'fooBar'