mogami-stream - v0.2.0
    Preparing search index...

    Function chunks

    • Groups consecutive values into arrays of up to size items.

      If the stream completes normally with fewer than size buffered items, the remaining items are emitted as a final smaller array.

      Parameters

      • size: number

      Returns <T>(source: AsyncIterable<T>) => Stream<T[]>

      If size is not a positive safe integer.

    • Groups consecutive values into arrays of up to size items.

      If the stream completes normally with fewer than size buffered items, the remaining items are emitted as a final smaller array.

      Type Parameters

      • T

      Parameters

      • size: number

      Returns Operator<T, T[]>

      If size is not a positive safe integer.