Apply arrow function transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:41:39 -08:00
parent d461c87979
commit 7167d7e09f
108 changed files with 172 additions and 271 deletions

View File

@@ -16,9 +16,7 @@ var reApos = RegExp(rsApos, 'g');
* @returns {Function} Returns the new compounder function.
*/
function createCompounder(callback) {
return function(string) {
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
};
return string => arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
}
export default createCompounder;