massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / function-uncurry-this.js
1 var FunctionPrototype = Function.prototype;
2 var bind = FunctionPrototype.bind;
3 var call = FunctionPrototype.call;
4 var callBind = bind && bind.bind(call);
5
6 module.exports = bind ? function (fn) {
7   return fn && callBind(call, fn);
8 } : function (fn) {
9   return fn && function () {
10     return call.apply(fn, arguments);
11   };
12 };