Created
March 11, 2022 10:22
-
-
Save AitorAlejandro/686af29832a6c42887a093c22ae3c08c to your computer and use it in GitHub Desktop.
Converts a number to char/letter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberToLetter = (value: number): string => String.fromCharCode(94 + value); | |
numberToLetter(4); // -> b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment