Type alias Reducer<T, U>

Reducer<T, U>: ((accumulator: U, value: T, index: number) => U)

Type Parameters

  • T

  • U

Type declaration

    • (accumulator: U, value: T, index: number): U
    • Parameters

      • accumulator: U
      • value: T
      • index: number

      Returns U

Generated using TypeDoc