UNPKG

339 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var codeAt = require('../internals/string-multibyte').codeAt;
4
5// `String.prototype.codePointAt` method
6// https://tc39.es/ecma262/#sec-string.prototype.codepointat
7$({ target: 'String', proto: true }, {
8 codePointAt: function codePointAt(pos) {
9 return codeAt(this, pos);
10 }
11});