Created
December 26, 2017 15:20
-
-
Save adamabernathy/6d49ef360627d7855e2028c53d959b23 to your computer and use it in GitHub Desktop.
Array tricks
This file contains hidden or 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
| // 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