Remove references to _.

This commit is contained in:
John-David Dalton
2017-01-09 17:38:33 -08:00
parent 65654f8f9e
commit 77cc37ba49
410 changed files with 875 additions and 1157 deletions

View File

@@ -5,20 +5,19 @@ import createCompounder from './_createCompounder.js';
* [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the kebab cased string.
* @example
*
* _.kebabCase('Foo Bar');
* kebabCase('Foo Bar');
* // => 'foo-bar'
*
* _.kebabCase('fooBar');
* kebabCase('fooBar');
* // => 'foo-bar'
*
* _.kebabCase('__FOO_BAR__');
* kebabCase('__FOO_BAR__');
* // => 'foo-bar'
*/
const kebabCase = createCompounder((result, word, index) => result + (index ? '-' : '') + word.toLowerCase());