Skip to content

Commit

Permalink
don\'t need to transform arguments to array (#4544)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
baozouai and jasonsaayman committed May 9, 2022
1 parent 6bd1a89 commit 4c898f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/helpers/bind.js
Expand Up @@ -2,10 +2,6 @@

module.exports = function bind(fn, thisArg) {
return function wrap() {
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
return fn.apply(thisArg, args);
return fn.apply(thisArg, arguments);
};
};

0 comments on commit 4c898f8

Please sign in to comment.