massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / function-uncurry-this.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/function-uncurry-this.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/function-uncurry-this.js
new file mode 100644 (file)
index 0000000..6cc16dd
--- /dev/null
@@ -0,0 +1,12 @@
+var FunctionPrototype = Function.prototype;
+var bind = FunctionPrototype.bind;
+var call = FunctionPrototype.call;
+var callBind = bind && bind.bind(call);
+
+module.exports = bind ? function (fn) {
+  return fn && callBind(call, fn);
+} : function (fn) {
+  return fn && function () {
+    return call.apply(fn, arguments);
+  };
+};