Created
May 29, 2024 23:06
-
-
Save LukeberryPi/aca12490316d28d7e8d8fa8e9eacf701 to your computer and use it in GitHub Desktop.
create range javascript function
This file contains 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
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