mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
don\'t need to transform arguments to array (#4544)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
+1
-5
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user