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