• Takes an (async) iterable that emits things and returns an async iterable that emits those things in fixed-sized batches

    Type Parameters

    • T

    Parameters

    Returns Generator<T[], void, undefined>

  • Type Parameters

    • T

    Parameters

    • source: Iterable<T> | AsyncIterable<T>
    • Optional size: number

    Returns AsyncGenerator<T[], void, undefined>