Last active
April 21, 2023 10:12
-
-
Save fostyfost/084551e3de765139eee95df6dde13890 to your computer and use it in GitHub Desktop.
Array 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
export const getArrayRange = (length: number, startFrom = 0): number[] => { | |
return Array.from({ length }, (_, index) => index + startFrom) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment