Skip to content

Instantly share code, notes, and snippets.

@matthewoestreich
Created April 13, 2019 20:23
Show Gist options
  • Save matthewoestreich/a5fcbe9b19f43cce7564331adefadfd1 to your computer and use it in GitHub Desktop.
Save matthewoestreich/a5fcbe9b19f43cce7564331adefadfd1 to your computer and use it in GitHub Desktop.
how to create empty array
[...Array(8 + 1).keys()].slice(1)
// [1,2,3,4,5,6,7,8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment