Returns the number of keys
Adds several values
under the same key
. Duplicate values are permitted, depending on implementation.
Rest
...values: readonly V[]Adds a value, automatically extracting a key via the
groupBy
function assigned in the constructor options.
Rest
...values: readonly V[]Adds several values
Delete all occurrences of value
, regardless of
key it is stored under.
Returns true if something was deleted.
Deletes all values under key
that match value
.
Key
Value
Returns true if the map is empty