JSPM

code-point-at

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8555031
  • Score
    100M100P100Q15576F
  • License MIT

ES2015 String#codePointAt() ponyfill

Package Exports

  • code-point-at

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-point-at) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

code-point-at Build Status

ES2015 String#codePointAt() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install --save code-point-at

Usage

var codePointAt = require('code-point-at');

codePointAt('🐴');
//=> 128052

codePointAt('abc', 2);
//=> 99

API

codePointAt(input, [position])

License

MIT © Sindre Sorhus