summaryrefslogtreecommitdiff
path: root/lib/compose.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compose.js')
-rw-r--r--lib/compose.js8
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());
+};