Skip to content

javascript function that mimics python range built-in

License

Notifications You must be signed in to change notification settings

gforceg/ts-range

Repository files navigation

of-range

A function that mimicks the python range built-in

Example Usage

Simplest form

range(5) === [0, 1, 2, 3, 4]

Range form

range(0, 5) === [0, 1, 2, 3, 4]

Range step form

range(2, 10, 2) === [2, 4, 6, 8]

Reverse range step form

range(3, -4, -1) === [3, 2, 1, 0, -1, -2, -3]

About

javascript function that mimics python range built-in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published