Skip to content

Commit

Permalink
Use reverse method instead Array.prototype.reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Shatokhin committed Jul 6, 2016
1 parent 10c8392 commit 48e0b01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions dist/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -2404,8 +2404,6 @@
});
});

var reverse = Array.prototype.reverse;

/**
* Creates a function which is a composition of the passed asynchronous
* functions. Each function consumes the return value of the function that
Expand Down Expand Up @@ -2442,7 +2440,7 @@
* });
*/
var compose = rest(function (args) {
return seq.apply(null, reverse.call(args));
return seq.apply(null, args.reverse());
});

function concat$1(eachfn, arr, fn, callback) {
Expand Down
Loading

0 comments on commit 48e0b01

Please sign in to comment.