mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user