Opal-Estate-Pro/node_modules/axios/lib/helpers/bind.js
2019-09-13 11:27:52 +07:00

12 lines
256 B
JavaScript

'use strict';
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);
};
};