Skip to content

Instantly share code, notes, and snippets.

@lukethacoder
Created March 13, 2020 10:33
Show Gist options
  • Save lukethacoder/b9802500e5d018a4f52a414b8a3bf335 to your computer and use it in GitHub Desktop.
Save lukethacoder/b9802500e5d018a4f52a414b8a3bf335 to your computer and use it in GitHub Desktop.
given a number, create a new array and fill it with incrementing numbers
[...Array(10).keys()]
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment