1 var createCompounder = require('../internal/createCompounder');
4 * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
9 * @param {string} [string=''] The string to convert.
10 * @returns {string} Returns the start cased string.
13 * _.startCase('--foo-bar');
16 * _.startCase('fooBar');
19 * _.startCase('__foo_bar__');
22 var startCase = createCompounder(function(result, word, index) {
23 return result + (index ? ' ' : '') + (word.charAt(0).toUpperCase() + word.slice(1));
26 module.exports = startCase;