Created
December 22, 2023 01:44
-
-
Save ryochin/5165d58abe28dd264f37f6d335e94b8a to your computer and use it in GitHub Desktop.
TypeScript: range()
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 range = (begin: number, end: number) => ([...Array(end - begin)].map((_, i) => (begin + i))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment