code-point-at

ES2015 `String#codePointAt()` ponyfill


Keywords
es2015, ponyfill, polyfill, shim, string, str, code, point, at, codepoint, unicode
License
MIT
Install
npm install code-point-at@1.1.0

Documentation

code-point-at Build Status

ES2015 String#codePointAt() ponyfill

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