Created
September 9, 2024 18:29
-
-
Save feelfreetofee/4437a80b2c5677e719c4c20fadcbeda3 to your computer and use it in GitHub Desktop.
Creates an array containing the alphabet
This file contains hidden or 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
| 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