first
This commit is contained in:
11
node_modules/core-js/es/instance/code-point-at.js
generated
vendored
Normal file
11
node_modules/core-js/es/instance/code-point-at.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
||||
var method = require('../string/virtual/code-point-at');
|
||||
|
||||
var StringPrototype = String.prototype;
|
||||
|
||||
module.exports = function (it) {
|
||||
var own = it.codePointAt;
|
||||
return typeof it == 'string' || it === StringPrototype
|
||||
|| (isPrototypeOf(StringPrototype, it) && own === StringPrototype.codePointAt) ? method : own;
|
||||
};
|
Reference in New Issue
Block a user