ES2015
String#codePointAt()
ponyfill
Ponyfill: A polyfill that doesn't overwrite the native method
$ npm install --save code-point-at
var codePointAt = require('code-point-at');
codePointAt('🐴');
//=> 128052
codePointAt('abc', 2);
//=> 99
MIT © Sindre Sorhus