Skip to content

Instantly share code, notes, and snippets.

@exuanbo
Created September 13, 2021 20:14
Show Gist options
  • Save exuanbo/0c1436c4e7959863979e346b7b6ccbaa to your computer and use it in GitHub Desktop.
Save exuanbo/0c1436c4e7959863979e346b7b6ccbaa to your computer and use it in GitHub Desktop.
export const range = (n: number): number[] => Array.from({ length: n }, (_, i) => i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment