Function reduce

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Returns Curried3<((acc, val, index?, arr?) => T2), T2, T1[], T2> | Curried3<((acc, val, key?, obj?) => T2), T2, Record<string, T1>, T2>

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, index?, arr?) => T2)
        • (acc, val, index?, arr?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional index: number
          • Optional arr: T1[]

          Returns T2

    Returns Curried2<T2, T1[], T2>

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, key?, obj?) => T2)
        • (acc, val, key?, obj?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional key: string
          • Optional obj: Record<string, T1>

          Returns T2

    Returns Curried2<T2, Record<string, T1>, T2>

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, index?, arr?) => T2)
        • (acc, val, index?, arr?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional index: number
          • Optional arr: T1[]

          Returns T2

    • val: T2

    Returns Curried1<T1[], T2>

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, key?, obj?) => T2)
        • (acc, val, key?, obj?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional key: string
          • Optional obj: Record<string, T1>

          Returns T2

    • val: T2

    Returns Curried1<Record<string, T1>, T2>

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, index?, arr?) => T2)
        • (acc, val, index?, arr?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional index: number
          • Optional arr: T1[]

          Returns T2

    • val: T2
    • arr: T1[]

    Returns T2

  • Curried _reduce

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((acc, val, key?, obj?) => T2)
        • (acc, val, key?, obj?): T2
        • Parameters

          • acc: T2
          • val: T1
          • Optional key: string
          • Optional obj: Record<string, T1>

          Returns T2

    • val: T2
    • obj: Record<string, T1>

    Returns T2