Skip to content

Instantly share code, notes, and snippets.

@feelfreetofee
Created September 9, 2024 18:29
Show Gist options
  • Select an option

  • Save feelfreetofee/4437a80b2c5677e719c4c20fadcbeda3 to your computer and use it in GitHub Desktop.

Select an option

Save feelfreetofee/4437a80b2c5677e719c4c20fadcbeda3 to your computer and use it in GitHub Desktop.
Creates an array containing the alphabet
Array.from({length: 26}, (_, i) => String.fromCharCode(97 + i))
Array(26).fill().map((_, i) => String.fromCharCode(97 + i))
[...Array(26).keys()].map(i => String.fromCharCode(97 + i))
[...Array(26)].map((_, i) => String.fromCharCode(97 + i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment