Created
October 21, 2019 00:45
-
-
Save MateusAndrade/5077a1b85f3324de079b031f11a3ff21 to your computer and use it in GitHub Desktop.
Initializar a array with number from 0 to array lenght(N)
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
export default function = (lenght) => Array(lenght).fill(0).map((e, i) => i); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment