1 var createCompounder = require('./_createCompounder');
4 * Converts `string`, as space separated words, to lower case.
10 * @param {string} [string=''] The string to convert.
11 * @returns {string} Returns the lower cased string.
14 * _.lowerCase('--Foo-Bar--');
17 * _.lowerCase('fooBar');
20 * _.lowerCase('__FOO_BAR__');
23 var lowerCase = createCompounder(function(result, word, index) {
24 return result + (index ? ' ' : '') + word.toLowerCase();
27 module.exports = lowerCase;