massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / starts-with.js
1 var isPrototypeOf = require('../../internals/object-is-prototype-of');
2 var method = require('../string/virtual/starts-with');
3
4 var StringPrototype = String.prototype;
5
6 module.exports = function (it) {
7   var own = it.startsWith;
8   return typeof it == 'string' || it === StringPrototype
9     || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.startsWith) ? method : own;
10 };