02111c709a0db29bff60a4f78c968e424c8eb9ed
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / toLower.js
1 var toString = require('./toString');
2
3 /**
4  * Converts `string`, as a whole, to lower case.
5  *
6  * @static
7  * @memberOf _
8  * @category String
9  * @param {string} [string=''] The string to convert.
10  * @returns {string} Returns the lower cased string.
11  * @example
12  *
13  * _.toLower('--Foo-Bar');
14  * // => '--foo-bar'
15  *
16  * _.toLower('fooBar');
17  * // => 'foobar'
18  *
19  * _.toLower('__FOO_BAR__');
20  * // => '__foo_bar__'
21  */
22 function toLower(value) {
23   return toString(value).toLowerCase();
24 }
25
26 module.exports = toLower;