doddle
    Preparing search index...

    Type Alias Reduction<E, O>

    Reduction: (acc: O, element: E, index: number) => MaybePromised<O>

    A reducer function combining an accumulator and element to produce a new accumulator.

    ℹ️ Used in operations like reduce or scan to accumulate results.

    Type Parameters

    • E

      The element type.

    • O

      The accumulator type.

    Type declaration