1 var arrayReduce = require('./_arrayReduce'),
2 deburr = require('./deburr'),
3 words = require('./words');
6 * Creates a function like `_.camelCase`.
9 * @param {Function} callback The function to combine each word.
10 * @returns {Function} Returns the new compounder function.
12 function createCompounder(callback) {
13 return function(string) {
14 return arrayReduce(words(deburr(string)), callback, '');
18 module.exports = createCompounder;