diff options
Diffstat (limited to 'lib/seq.js')
-rw-r--r-- | lib/seq.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,9 +52,9 @@ export default function seq(...functions) { cb = noop; } - reduce(_functions, args, (newargs, fn, cb) => { + reduce(_functions, args, (newargs, fn, iterCb) => { fn.apply(that, newargs.concat((err, ...nextargs) => { - cb(err, nextargs); + iterCb(err, nextargs); })); }, (err, results) => cb(err, ...results)); |