Function reduceSync

  • Type Parameters

    Type Parameters

    • T

    Parameters

    • reducer: ((accumulator: T, currentValue: T) => T)
        • (accumulator: T, currentValue: T): T
        • Parameters

          • accumulator: T
          • currentValue: T

          Returns T

    • iterable: Iterable<T>

    Returns T

  • Type Parameters

    Type Parameters

    • T

    • R

    Parameters

    • reducer: ((accumulator: R, currentValue: T) => R)
        • (accumulator: R, currentValue: T): R
        • Parameters

          • accumulator: R
          • currentValue: T

          Returns R

    • initialValue: R
    • iterable: Iterable<T>

    Returns R

Generated using TypeDoc