Created
July 31, 2024 03:30
-
-
Save hctilg/b15eb4b262c603bac4ce9b025a03374f to your computer and use it in GitHub Desktop.
Sequence generator function
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
// Sequence generator function | |
const range = (start = 0, stop = 0, step = 0) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + (i * step)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment