.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / ends-with.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/ends-with.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/ends-with.js
new file mode 100644 (file)
index 0000000..532d6f7
--- /dev/null
@@ -0,0 +1,9 @@
+var endsWith = require('../string/virtual/ends-with');
+
+var StringPrototype = String.prototype;
+
+module.exports = function (it) {
+  var own = it.endsWith;
+  return typeof it === 'string' || it === StringPrototype
+    || (it instanceof String && own === StringPrototype.endsWith) ? endsWith : own;
+};