1 var isPrototypeOf = require('../../internals/object-is-prototype-of');
2 var method = require('../string/virtual/starts-with');
4 var StringPrototype = String.prototype;
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;