Skip to content
Subhajit Sahu edited this page May 5, 2020 · 1 revision

Return ASCII code of a character in string.

var asc = require('@extra-string/asc');

asc('A');     // 65
asc('aA');    // 97
asc('aA', 1); // 65

extra-string

Clone this wiki locally