untitled notebook

node v6.17.1
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