Type alias ReduceFunction<K, V, W>

ReduceFunction<K, V, W>: ((acc, v, k, x) => W)

Type Parameters

  • K

  • V

  • W

Type declaration

    • (acc, v, k, x): W
    • Handle reduction of multiple values into a single value.

      Parameters

      • acc: W

        accumulator (temporary result)

      • v: V

        value in entries

      • k: K

        key of value in entries

      • x: Entries<K, V>

        entries containing the value

      Returns W

      reduced value

Generated using TypeDoc