From 90656cfd3b6750397a1f5e9539323391cf0e50c6 Mon Sep 17 00:00:00 2001 From: Graeme Yeates Date: Tue, 29 Dec 2015 16:39:20 -0500 Subject: Set up async bundles --- lib/seq.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/seq.js') diff --git a/lib/seq.js b/lib/seq.js index 184dc4b..52475b3 100644 --- a/lib/seq.js +++ b/lib/seq.js @@ -1,10 +1,12 @@ +'use strict'; + import noop from 'lodash/utility/noop'; import reduce from './reduce'; -import restParam from 'lodash/function/restParam'; +import rest from 'lodash/function/rest'; export default function seq( /* functions... */ ) { var fns = arguments; - return restParam(function(args) { + return rest(function(args) { var that = this; var cb = args[args.length - 1]; @@ -15,7 +17,7 @@ export default function seq( /* functions... */ ) { } reduce(fns, args, function(newargs, fn, cb) { - fn.apply(that, newargs.concat([restParam(function(err, nextargs) { + fn.apply(that, newargs.concat([rest(function(err, nextargs) { cb(err, nextargs); })])); }, -- cgit v1.2.1