Operator Rundown
This chapter presented you with a few new operators, so here’s a recap of them, along with some scenarios for ways we can use them in our applications. Remember, you can always find the complete API documentation for operators on the RxJS GitHub site.[16]
-
Rx.Observable.from
Default behavior: Synchronous
Since many of the data sources you use in your applications will come from arrays or iterables, it makes sense to have an operator that creates Observables out of them. from is one of the operators you’ll use the most.
With from we can create Observables from arrays, array-like objects (for instance, the arguments object or DOM NodeLists), and even types that implement the iterable protocol, such as String, Map, and Set
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access