Skip to content

Instantly share code, notes, and snippets.

@DistractionBoy
Created March 29, 2022 12:51
Show Gist options
  • Save DistractionBoy/be47a6a82575ad25d18a7d8506d81e3c to your computer and use it in GitHub Desktop.
Save DistractionBoy/be47a6a82575ad25d18a7d8506d81e3c to your computer and use it in GitHub Desktop.
function range(size, startAt = 0) {
return [...Array(size).keys()].map(i => i + startAt);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment