mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Remove references to _.
This commit is contained in:
@@ -5,20 +5,19 @@ import createCompounder from './_createCompounder.js';
|
||||
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the camel cased string.
|
||||
* @example
|
||||
*
|
||||
* _.camelCase('Foo Bar');
|
||||
* camelCase('Foo Bar');
|
||||
* // => 'fooBar'
|
||||
*
|
||||
* _.camelCase('--foo-bar--');
|
||||
* camelCase('--foo-bar--');
|
||||
* // => 'fooBar'
|
||||
*
|
||||
* _.camelCase('__FOO_BAR__');
|
||||
* camelCase('__FOO_BAR__');
|
||||
* // => 'fooBar'
|
||||
*/
|
||||
const camelCase = createCompounder((result, word, index) => {
|
||||
|
||||
Reference in New Issue
Block a user