_.camelCase

_.camelCase([string=''])

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'
doc_Lodash
2016-11-27 16:35:42
Comments
Leave a Comment

Please login to continue.