UNPKG

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