Back to Developer Roadmap

Transformation

src/data/roadmaps/angular/content/[email protected]

4.01.7 KB
Original Source

Transformation

In RxJS, "transformation" refers to the process of modifying or manipulating the data emitted by an Observable. There are a variety of methods available in RxJS that can be used to transform the data emitted by an Observable, including:

  • map: applies a function to each item emitted by the Observable and emits the resulting value
  • mergeMap: applies a function to each item emitted by the Observable, and then merges the resulting Observables into a single Observable
  • switchMap: applies a function to each item emitted by the Observable, and then switches to the latest resulting Observable
  • concatMap: applies a function to each item emitted by the Observable, and then concatenates the resulting Observables into a single Observable
  • exhaustMap: applies a function to each item emitted by the Observable, but ignores subsequent emissions until the current Observable completes

Visit the following resources to learn more: