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