ordr
Given a string representing one Unicode character, return an integer representing the Unicode code point of that character.
ES6 implementation ofPython built-in ord()
function
This is the inverse of char
.
Install
$ npm install --save ordr
Usage
const ord = console// => 65 console// => 97 console// => 8364 console// => 64
License
MIT © Nicolás Quiroz