X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2FlowerCase.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2FlowerCase.js;h=4222dcbad1d61db5f7b24683e9fba294ef662845;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/lowerCase.js b/node_modules/grunt-legacy-util/node_modules/lodash/lowerCase.js new file mode 100644 index 000000000..4222dcbad --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/lowerCase.js @@ -0,0 +1,26 @@ +var createCompounder = require('./_createCompounder'); + +/** + * Converts `string`, as space separated words, to lower case. + * + * @static + * @memberOf _ + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the lower cased string. + * @example + * + * _.lowerCase('--Foo-Bar'); + * // => 'foo bar' + * + * _.lowerCase('fooBar'); + * // => 'foo bar' + * + * _.lowerCase('__FOO_BAR__'); + * // => 'foo bar' + */ +var lowerCase = createCompounder(function(result, word, index) { + return result + (index ? ' ' : '') + word.toLowerCase(); +}); + +module.exports = lowerCase;