1 var capitalize = require('./capitalize'),
2 createCompounder = require('./_createCompounder');
5 * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
10 * @param {string} [string=''] The string to convert.
11 * @returns {string} Returns the start cased string.
14 * _.startCase('--foo-bar');
17 * _.startCase('fooBar');
20 * _.startCase('__foo_bar__');
23 var startCase = createCompounder(function(result, word, index) {
24 return result + (index ? ' ' : '') + capitalize(word);
27 module.exports = startCase;