Created
February 14, 2018 05:19
-
-
Save joeltennant/fa3547eafe4bbccb22194a880a41cbbe to your computer and use it in GitHub Desktop.
Letter to number (1-26)
This file contains 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 alphaVal = (s) => s.toLowerCase().charCodeAt(0) - 97 + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment