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