• An iterable transform that applies an accumulator function over a sequence. The first entry is used as the initial accumulator value, and the specified function is used to select the result value.

    Returns

    Type Parameters

    • T

    Parameters

    • reducer: ((previous: T, current: T, index: number) => T)
        • (previous: T, current: T, index: number): T
        • Parameters

          • previous: T
          • current: T
          • index: number

          Returns T

    Returns IterableTransform<T, T>

  • An iterable transform that applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

    Returns

    Type Parameters

    • T

    • U

    Parameters

    • reducer: ((previous: U, current: T, index: number) => U)
        • (previous: U, current: T, index: number): U
        • Parameters

          • previous: U
          • current: T
          • index: number

          Returns U

    • initialValue: U

    Returns IterableTransform<T, U>

Generated using TypeDoc