Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / toArray

Function: toArray()

toArray<T>(): Operator<T, T[]>

Defined in: projects/libraries/streamix/src/lib/operators/toArray.ts:10

Collects all emitted values from the source stream into an array and emits that array once the source completes, tracking pending state.

Type Parameters

T

T = any

The type of the values in the source stream.

Returns

Operator<T, T[]>

An Operator instance for use in a stream's pipe method.

Released under the MIT License.