single
signature: single(a: Function): Observable
single(a: Function): Observable
Emit single item that passes expression.
Examples
Example 1: Emit first number passing predicate
( StackBlitz | jsBin | jsFiddle )
Additional Resources
single 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/single.ts
Last updated