Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function* range(from, to, step = 1) {
  2.   while(from <= to) {
  3.     yield from;
  4.     from += step;
  5.   }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement