source: node_modules/core-js-pure/internals/function-uncurry-this.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 379 bytes
Line 
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};
Note: See TracBrowser for help on using the repository browser.