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

    Function reduce

    • Reduces values from source sequentially using reducer and returns the final accumulator after cleanup.

      initial is awaited before opening source. If source is empty, the resolved initial value is returned. Object accumulators are passed by reference.

      Type Parameters

      • T
      • A

      Parameters

      Returns Promise<Awaited<A>>