RxJS Operators
Sale Page: RxJS Operators
Original price: -/-
You just pay: $17.00
Status: Instant Delivery
RxJS is mostly useful for its operators, even though the Observable is the foundation. Operators are the essential pieces that allow complex asynchronous code to be easily composed in a declarative manner.
What are operators?
Operators are functions. There are two kinds of operators:
Pipeable Operators are the kind that can be piped to Observables using the syntax observableInstance.pipe(operator())
. These include, filter(...)
, and mergeMap(...)
. When called, they do not change the existing Observable instance. Instead, they return a new Observable, whose subscription logic is based on the first Observable.
A Pipeable Operator is a function that takes an Observable as its input and returns another Observable. It is a pure operation: the previous Observable stays unmodified.
A Pipeable Operator is essentially a pure function which takes one Observable as input and generates another Observable as output. Subscribing to the output Observable will also subscribe to the input Observable.
Creation Operators are the other kind of operator, which can be called as standalone functions to create a new Observable. For example: of(1, 2, 3)
creates an observable that will emit 1, 2, and 3, one right after another. Creation operators will be discussed in more detail in a later section.
For example, the operator called map
is analogous to the Array method of the same name. Just as [1, 2, 3].map(x => x * x)
will yield [1, 4, 9]
, the Observable created like this:
After you make payment, we will send the link to your email then you can download the course anytime, anywhere you want. Our file hosted on Pcloud, Mega.Nz and Google-Drive
KING OF COURSE – The Difference You Make
More Courses: Business & Sales
Reviews
There are no reviews yet