RxJS: Reactive Extensions For JavaScript

7.8.2 · active · verified Sat Apr 18

RxJS (Reactive Extensions for JavaScript) is a library for reactive programming using Observables, making it easier to compose asynchronous or callback-based code sequences. The current stable version is 7.8.2, with an active roadmap towards version 8, including regular alpha releases and maintenance updates.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates creating an Observable from a range, applying `filter` and `map` operators using `.pipe()`, and subscribing to log the results.

import { range, filter, map } from 'rxjs';

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

view raw JSON →