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