Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
/ code-point-at Public archive

ES2015 `String#codePointAt()` ponyfill

License

Notifications You must be signed in to change notification settings

sindresorhus/code-point-at

Repository files navigation

code-point-at Build Status

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

About

ES2015 `String#codePointAt()` ponyfill

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published