Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created March 11, 2022 10:22
Show Gist options
  • Save AitorAlejandro/686af29832a6c42887a093c22ae3c08c to your computer and use it in GitHub Desktop.
Save AitorAlejandro/686af29832a6c42887a093c22ae3c08c to your computer and use it in GitHub Desktop.
Converts a number to char/letter
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