Function countAs

  • Count occurrences of values.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: Set<T>

      a set

    • fm: MapFunction<T, T | U>

      map function (v, v, x)

    Returns Map<T | U, number>

    Map {value ⇒ count}

Generated using TypeDoc