Use more ES2015.

This commit is contained in:
John-David Dalton
2017-01-02 16:45:31 -06:00
parent 2900cfd288
commit 1a1e462f80
17 changed files with 45 additions and 59 deletions

View File

@@ -12,7 +12,7 @@ import baseEach from './_baseEach.js';
* @returns {Function} Returns `accumulator`.
*/
function baseAggregator(collection, setter, iteratee, accumulator) {
baseEach(collection, function(value, key, collection) {
baseEach(collection, (value, key, collection) => {
setter(accumulator, value, iteratee(value), collection);
});
return accumulator;