Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / upperCase.js
diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/upperCase.js b/node_modules/grunt-legacy-util/node_modules/lodash/upperCase.js
new file mode 100644 (file)
index 0000000..e09737f
--- /dev/null
@@ -0,0 +1,26 @@
+var createCompounder = require('./_createCompounder');
+
+/**
+ * Converts `string`, as space separated words, to upper case.
+ *
+ * @static
+ * @memberOf _
+ * @category String
+ * @param {string} [string=''] The string to convert.
+ * @returns {string} Returns the upper cased string.
+ * @example
+ *
+ * _.upperCase('--foo-bar');
+ * // => 'FOO BAR'
+ *
+ * _.upperCase('fooBar');
+ * // => 'FOO BAR'
+ *
+ * _.upperCase('__foo_bar__');
+ * // => 'FOO BAR'
+ */
+var upperCase = createCompounder(function(result, word, index) {
+  return result + (index ? ' ' : '') + word.toUpperCase();
+});
+
+module.exports = upperCase;