Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 383 Bytes
const { rxObserver } = require('api/v0.3');
const { timer } = require('rxjs');
const { filter,take } = require('rxjs/operators');


timer(0, 10)
  .pipe(
    take(10),
    filter(x => x % 2)
  )
  .subscribe(rxObserver('Odd'));
You can’t perform that action at this time.