Function countAs

  • Count occurrences of values.

    Type Parameters

    • K

    • V

    • W = V

    Parameters

    • x: Map<K, V>

      a map

    • fm: MapFunction<K, V, V | W> = null

      map function (v, k, x)

    Returns Map<V | W, number>

    Map {value ⇒ count}

Generated using TypeDoc