UNPKG

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