camelCase source npm

_.camelCase([string=''])

Converts string to camel case.

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'