summaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/transform.js b/lib/transform.js
index 501636c..2a68845 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -54,9 +54,7 @@ export default function transform (coll, accumulator, iteratee, callback) {
callback = once(callback || noop);
var _iteratee = wrapAsync(iteratee);
- eachOf(coll, function(v, k, cb) {
+ eachOf(coll, (v, k, cb) => {
_iteratee(accumulator, v, k, cb);
- }, function(err) {
- callback(err, accumulator);
- });
+ }, err => callback(err, accumulator));
}