Appendix B. Choosing an operator
The following is a list of operators and a description of when to use them. We cover the operators (static and instance) used in this book. Some operators can act as both static and instance, and we indicate which ones. For a more complete list, please visit http://reactivex.io/rxjs/manual/overview.html#choose-an-operator.
All factory operators are called as static methods of the Rx.Observable type. See table B.1.
Table B.1. Static scope operators
Situation |
Purpose |
Operator |
---|---|---|
Creating a new instance | With custom logic From a given value | create |
From an observable-like object | from | |
From a range of numbers | range | |
With an exception | catch | |
From an ES6 promise From any event originated by ... |
Get RxJS in Action 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.