Guest User

Untitled

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function* __fib4() {
  2. let p = 0,
  3. c = 1;
  4. while(c !== Infinity) {
  5. [p, c] = [c, p + c];
  6. yield c;
  7. }
  8. throw 'OutOfRange';
  9. }
Add Comment
Please, Sign In to add comment