• Add a value to an array inside of a map; if the array is not created create it and then push the value

    Type Parameters

    • T

    • K

    Parameters

    • map: Map<K, T[]>

      Map of Array's

    • key: K

      Key in the map

    • value: T

      Value to add to the array

    Returns number