Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function* range(start, stop, step = 1) {
- for (let i = start, len = Math.floor((stop - start) / step); i < len; i += step) {
- yield i;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement