• Add a value to an Set 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, Set<T>>

      Map of Set's

    • key: K

      Key in the map

    • value: T

      Value to add to the array

    Returns Set<T>