Skip to content

Instantly share code, notes, and snippets.

@codergautam
Created May 14, 2021 11:20
Show Gist options
  • Save codergautam/0a1f87625dc1462208ebf3307565b24a to your computer and use it in GitHub Desktop.
Save codergautam/0a1f87625dc1462208ebf3307565b24a to your computer and use it in GitHub Desktop.
One liner for a array of alphabets in javascript
Array.from(Array(26)).map((e, i) => i + 65).map((x) => String.fromCharCode(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment