Skip to content

Instantly share code, notes, and snippets.

@jgphilpott
Forked from bendc/alphabet.js
Last active September 3, 2023 14:01
Show Gist options
  • Save jgphilpott/039612f921bf977e5070470ab8f24296 to your computer and use it in GitHub Desktop.
Save jgphilpott/039612f921bf977e5070470ab8f24296 to your computer and use it in GitHub Desktop.
An array of uppercase and lowercase letters.
const alphabet = (function() {
letters = [...Array(26)].map((value, index) => String.fromCharCode(index + 65))
return letters.map(letter => {
return { lower: letter.toLowerCase(), upper: letter.toUpperCase() }
})
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment