mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 14:54:35 +00:00
![]() PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io> |
||
---|---|---|
.. | ||
index.js | ||
license | ||
package.json | ||
readme.md |
code-point-at 
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