Skip to content

Instantly share code, notes, and snippets.

@LukeberryPi
Created May 29, 2024 23:06
Show Gist options
  • Save LukeberryPi/aca12490316d28d7e8d8fa8e9eacf701 to your computer and use it in GitHub Desktop.
Save LukeberryPi/aca12490316d28d7e8d8fa8e9eacf701 to your computer and use it in GitHub Desktop.
create range javascript function
const createRange = (len, start = 1) =>
Array(len)
.fill(0)
.map((_, i) => i + start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment