huituanxueqian 7740728225 commit | 1 éve | |
---|---|---|
.. | ||
index.js | 1 éve | |
license | 1 éve | |
package.json | 1 éve | |
readme.md | 1 éve |
ES2015
String#codePointAt()
ponyfill
$ npm install --save code-point-at
var codePointAt = require('code-point-at');
codePointAt('🐴');
//=> 128052
codePointAt('abc', 2);
//=> 99
MIT © Sindre Sorhus