toArray
signature: toArray(): OperatorFunction
toArray(): OperatorFunction
Collects all source emissions and emits them as an array when the source completes.
Examples
Example 1: get values emitted by interval as an array when interval completes
( StackBlitz )
Related Recipes
Additional Resources
toArray 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/toArray.ts
Last updated