Back

Version 9

8/9/2023
export const tagFromSmallLetter = (char: string) => {
if (char.length !== 1) {
throw new Error("Must be a single character");
}
if (char < "a" || char > "z") {
throw new Error("Must be a-z");
}
return 0xE0000 + char.charCodeAt(0);
};
Updated: October 23, 2023