1 | ;
|
2 | var NATIVE_BIND = require('../internals/function-bind-native');
|
3 |
|
4 | var FunctionPrototype = Function.prototype;
|
5 | var call = FunctionPrototype.call;
|
6 | var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
7 |
|
8 | module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
9 | return function () {
|
10 | return call.apply(fn, arguments);
|
11 | };
|
12 | };
|