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