Miss any of our Open RFC calls?Watch the recordings here! »

code-point-at

1.1.0 • Public • Published

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

Install

npm i code-point-at

DownloadsWeekly Downloads

11,779,283

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar