RxJS Operators

noun

say it: “AR-EKS-JAY-ESS OP-er-ay-terz” /ˌɑːr ɛks dʒeɪ ˈɛs ˈɒpəreɪtərz/

Functions chained inside pipe() that change an Observable's values, such as map, filter and tap.

What is RxJS Operators?

RxJS operators are functions you chain with pipe() to transform a stream: map changes each value, filter drops some, debounceTime waits for a pause.

this.search.valueChanges.pipe(
  debounceTime(300),
  filter(text => text.length > 2),
  map(text => text.trim()),
)

In a sentence

  • “Two RxJS operators, map and tap, reshape and log the response.”

Level: Freelancer · More Angular terms at this level

Updated