Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReduceByArity4

Hierarchy

  • ReduceByArity4

Callable

  • __call<A, B>(f: (acc: B, value: A) => B, seed: B, by: (a: A) => PropertyKey | number, list: ReadonlyArray<A>): {}
  • __call<A, B>(f: (acc: B, value: A) => B): ReduceByArity3<A, B>
  • __call<A, B>(f: (acc: B, value: A) => B, seed: B): ReduceByArity2<A, B>
  • __call<A, B>(f: (acc: B, value: A) => B, seed: B, by: (a: A) => PropertyKey): ReduceByArity1<A, B>
  • Type parameters

    • A

    • B

    Parameters

    • f: (acc: B, value: A) => B
        • (acc: B, value: A): B
        • Parameters

          • acc: B
          • value: A

          Returns B

    • seed: B
    • by: (a: A) => PropertyKey | number
        • (a: A): PropertyKey | number
        • Parameters

          • a: A

          Returns PropertyKey | number

    • list: ReadonlyArray<A>

    Returns {}

    • [key: string]: B
  • Type parameters

    • A

    • B

    Parameters

    • f: (acc: B, value: A) => B
        • (acc: B, value: A): B
        • Parameters

          • acc: B
          • value: A

          Returns B

    Returns ReduceByArity3<A, B>

  • Type parameters

    • A

    • B

    Parameters

    • f: (acc: B, value: A) => B
        • (acc: B, value: A): B
        • Parameters

          • acc: B
          • value: A

          Returns B

    • seed: B

    Returns ReduceByArity2<A, B>

  • Type parameters

    • A

    • B

    Parameters

    • f: (acc: B, value: A) => B
        • (acc: B, value: A): B
        • Parameters

          • acc: B
          • value: A

          Returns B

    • seed: B
    • by: (a: A) => PropertyKey
        • (a: A): PropertyKey
        • Parameters

          • a: A

          Returns PropertyKey

    Returns ReduceByArity1<A, B>

Generated using TypeDoc