Created
April 3, 2022 19:15
-
-
Save wtho/33db912347121d2d29c6d6b900750a1f to your computer and use it in GitHub Desktop.
range.ts
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 = (length: number) => Array.from({ length }, (_, i) => i) | |
// JS version | |
const rangeJs = length => Array.from({ length }, (_, i) => i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment