untitled notebook

node v6.11.2
version: master
endpointsharetweet
const rx = require("rxjs") rx.Observable.of(1, 2).switchMap((v) => { if (v === 1) return rx.Observable.of(v).delay(400) if (v === 2) return rx.Observable.of(v).delay(200) }).subscribe(a => console.log(a));
Loading…

no comments

    sign in to comment