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

Get Reactive Programming with RxJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.