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
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JYcoding-Blog/node_modules/code-point-at/readme.md at master · zhonghanyong/JYcoding-Blog Expand file tree/ Copy pathreadme.mdMore file actions 32 lines (18 loc) · 617 Bytes / Copy pathreadme.mdFile metadata and controls32 lines (18 loc) · 617 Bytes
var codePointAt = require('code-point-at'); codePointAt('🐴'); //=> 128052 codePointAt('abc', 2); //=> 99 MIT © Sindre Sorhus |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |