MultiMap
sourceConstructors
new MultiMap<K, V>(map: MultiMap<K, V> | Map<K, V[]>): MultiMapsource
Properties
_map: Map<K, V[]>source
Methods
Instance methods
[iterator](): IterableIterator<readonly [K, V[]]>source
clear(): voidsource
delete(key: K): booleansource
Deletes the given key from the MultiMap.
flatMap<U>(cb: Function): U[]source
get(key: K): V[]source
has(key: K): booleansource
keys(): IterableIterator<K>source
Yields each key in the MultiMap.
map<U>(cb: Function): U[]source
push(key: K, value: V): MultiMapsource
toMap(): Map<K, V[]>source
Returns the internal Map representation of the MultiMap.
values(): IterableIterator<V>source
Yields each value in the MultiMap.