mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove references to _.
This commit is contained in:
@@ -4,20 +4,19 @@ import createCompounder from './_createCompounder.js';
|
||||
* Converts `string`, as space separated words, to lower case.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the lower cased string.
|
||||
* @example
|
||||
*
|
||||
* _.lowerCase('--Foo-Bar--');
|
||||
* lowerCase('--Foo-Bar--');
|
||||
* // => 'foo bar'
|
||||
*
|
||||
* _.lowerCase('fooBar');
|
||||
* lowerCase('fooBar');
|
||||
* // => 'foo bar'
|
||||
*
|
||||
* _.lowerCase('__FOO_BAR__');
|
||||
* lowerCase('__FOO_BAR__');
|
||||
* // => 'foo bar'
|
||||
*/
|
||||
const lowerCase = createCompounder((result, word, index) => result + (index ? ' ' : '') + word.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user