Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Observable, Subject } from 'rxjs';
- const subj = new Subject();
- subj.take(10).
- startWith([1, 1]).
- scan(([a, b], _) => [b, a + b]).
- do(([a, b]) => console.log(a)).
- subscribe();
- while (true) { subj.next(); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement