Created
November 21, 2025 19:05
-
-
Save graffhyrum/014cde2044ce6acf00e5fa1031e473d9 to your computer and use it in GitHub Desktop.
TS Range
This file contains hidden or 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
| // No idea why this isn't stdlib | |
| function range(start: number, stop: number, step = 1) { | |
| return Array(stop - start + 1).keys().map(k => k + start); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment