function-apply.js 389 B

12345678910
  1. var NATIVE_BIND = require('../internals/function-bind-native');
  2. var FunctionPrototype = Function.prototype;
  3. var apply = FunctionPrototype.apply;
  4. var call = FunctionPrototype.call;
  5. // eslint-disable-next-line es-x/no-reflect -- safe
  6. module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
  7. return call.apply(apply, arguments);
  8. });