RxJS Playground

A blank canvas to play / experiment with RxJS: https://github.com/Reactive-Extensions/RxJS

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.all.js"></script>

JavaScript

var source = Rx.Observable
    .range(1,3)
    .tap(console.log.bind(console,`range out`))
    .flatMapLatest(function (x) {  //`switch` these days...
        return Rx.Observable.range(x*100, 2)
            .tap(console.log.bind(console,`range in`))
    });


 source.subscribe(value => console.log('I got a value ', value))