January 2019
Beginner
210 pages
4h 47m
English
In RxJS, observables have a method named pipe, which is very similar to the pipe operator in functional programming. When we pipe two functions, we generate a new function that passes the return of the first function as arguments to the second function in the pipe.
The idea is very similar in reactive programming. When we pipe an observable through an operator, we generate a new observable. The new observable passes each of the items in the original observable to an operator that transforms them into the items in the new sequence.
We are not going to include a code example here, because we are going to use the pipe method multiple times during the remaining part of this chapter.
Read now
Unlock full access