Iterates over all key/value bindings in this Map.
Readonly
[toAdds the given key/value binding to the Map.
Returns a Readonly Map representation of this Map.
Deletes the given key/value binding from the Map.
Iterates over all distinct keys in this Map.
Iterates over all key/value bindings in this Map.
Iterates over all distinct keys in this Map, together with a Set of their values.
Loops over all key/value bindings.
Returns all values stored for the given key.
Returns undefined
if there are no values for this key.
Returns true if this key/value binding exists in the Map.
Readonly
sizeIterates over all distinct keys and returns their Set of values.
Iterates over all values in this Map.
true if an element in the Map existed and has been removed, or false if the element does not exist.
boolean indicating whether an element with the specified key exists or not.
A SetMultiMap is a Map where a single key can have multiple unique values. Deleting a key removes all bindings with this key from the Map. Setting a value for a key replaces all previous bindings with this key. Using an empty Set when calling the
set
function is the same as deleting that key.