es.string.code-point-at.js 346 B

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