ignoreElements
signature: ignoreElements(): Observable
ignoreElements(): Observable
Ignore everything but complete and error.
Examples
Example 1: Ignore all elements from source
( StackBlitz | jsBin | jsFiddle )
Example 2: Only displaying error
( StackBlitz | jsBin | jsFiddle )
Additional Resources
ignoreElements 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/ignoreElements.ts
Last updated