1 var isPrototypeOf = require('../../internals/object-is-prototype-of');
2 var method = require('../string/virtual/ends-with');
4 var StringPrototype = String.prototype;
6 module.exports = function (it) {
8 return typeof it == 'string' || it === StringPrototype
9 || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.endsWith) ? method : own;