code-point-at
Version:
ES2015 `String#codePointAt()` ponyfill
32 lines (18 loc) • 469 B
Markdown
Deprecated. Just use `String#codePointAt()`.
---
# code-point-at
> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)
## Install
```
$ npm install --save code-point-at
```
## Usage
```js
var codePointAt = require('code-point-at');
codePointAt('🐴');
//=> 128052
codePointAt('abc', 2);
//=> 99
```
## API
### codePointAt(input, [position])