Skip to content

Instantly share code, notes, and snippets.

@adamabernathy
Created December 26, 2017 15:20
Show Gist options
  • Select an option

  • Save adamabernathy/6d49ef360627d7855e2028c53d959b23 to your computer and use it in GitHub Desktop.

Select an option

Save adamabernathy/6d49ef360627d7855e2028c53d959b23 to your computer and use it in GitHub Desktop.
Array tricks
// Create array of n length
const range = n => Array.from({ length: n }, (v, i) => i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment