Skip to content

Instantly share code, notes, and snippets.

@MateusAndrade
Created October 21, 2019 00:45
Show Gist options
  • Save MateusAndrade/5077a1b85f3324de079b031f11a3ff21 to your computer and use it in GitHub Desktop.
Save MateusAndrade/5077a1b85f3324de079b031f11a3ff21 to your computer and use it in GitHub Desktop.
Initializar a array with number from 0 to array lenght(N)
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