RxJS cache

Playground for RxJS 5.0.0 with ES2015 (Babel)

by Hiroshi Kurokawa

HTML

<script src="https://unpkg.com/rxjs/bundles/rxjs.umd.min.js"></script>

TypeScript

import { Observable, Subject, ReplaySubject, from, of, range } from 'rxjs';
import { map, filter, switchMap } from 'rxjs/operators';

range(1, 200)
  .pipe(filter(x => x % 2 === 1), map(x => x + x))
  .subscribe(x => console.log(x));