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