Function countedMapToArray

  • Turn map of distinct values to count into array of values

    Type Parameters

    • T

    Parameters

    • map: Map<T, number>

      Map to turn into array

    Returns T[]

    Array of values