12c591b2ec7dd9cb3188f1156bec072f191736121a555e3379b8cb7be687821f21c413cf7c92773148c83dab4cf8db758b57e22ea75e860d7a59d81b7172fc 404 B

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