Skip to content

Instantly share code, notes, and snippets.

@ruinunes
Last active February 19, 2020 10:14
Show Gist options
  • Save ruinunes/c60ef4788f0d2207c2464d9251c98472 to your computer and use it in GitHub Desktop.
Save ruinunes/c60ef4788f0d2207c2464d9251c98472 to your computer and use it in GitHub Desktop.
Prefill an array with sequential numbers
Array(8).fill().map((_, b) => ({ value: ++b, label: String(b) }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment