Created
January 5, 2023 11:50
-
-
Save tommylinks/4dc022d52a435b8de63c99fe9b4a4e4c to your computer and use it in GitHub Desktop.
Get array of indexes from length
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
Array.from({ length: NUMBER}, (_, index) => index + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment