Skip to content

Instantly share code, notes, and snippets.

@tommylinks
Created January 5, 2023 11:50
Show Gist options
  • Save tommylinks/4dc022d52a435b8de63c99fe9b4a4e4c to your computer and use it in GitHub Desktop.
Save tommylinks/4dc022d52a435b8de63c99fe9b4a4e4c to your computer and use it in GitHub Desktop.
Get array of indexes from length
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