diff options
author | Alexander Early <alexander.early@gmail.com> | 2018-04-14 20:10:29 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2018-04-14 20:10:29 -0700 |
commit | 45e2938cfa536fe27898c60a4e0fe37080c880bb (patch) | |
tree | c0cb0776b596908d1a79f77c1a30a138dcba6a00 /lib/compose.js | |
parent | 2030f5f1bd01a141ac4c85d3deab927f49e255fc (diff) | |
parent | 3235c8f5f67ff38b85ce6f9664053d0b1897ff3b (diff) | |
download | async-DELETE_THIS_BRANCH.tar.gz |
Merge branch 'master' into DELETE_THIS_BRANCHDELETE_THIS_BRANCH
Diffstat (limited to 'lib/compose.js')
-rw-r--r-- | lib/compose.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compose.js b/lib/compose.js index 96632c0..d9fa760 100644 --- a/lib/compose.js +++ b/lib/compose.js @@ -1,5 +1,5 @@ import seq from './seq'; -import rest from './internal/rest'; +import slice from './internal/slice'; /** * Creates a function which is a composition of the passed asynchronous @@ -36,6 +36,6 @@ import rest from './internal/rest'; * // result now equals 15 * }); */ -export default rest(function(args) { - return seq.apply(null, args.reverse()); -}); +export default function(/*...args*/) { + return seq.apply(null, slice(arguments).reverse()); +}; |