Internal
Returns the number of keys
Returns the length of the longest child list
Returns the type name. For in-built implementations, it will be one of: array, set or circular
Adds event listener.
Events
Event name
Event handler
Adds several values
under the same key
. Duplicate values are permitted, depending on implementation.
Adds a value, automatically extracting a key via the
groupBy
function assigned in the constructor options.
Adds several values
Clears the map
Returns the number of values stored under key
, or 0 if key
is not present.
Key
Returns a human-readable rendering of contents
Deletes all values stored under key
. Returns true if key was found
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
Iterates over key-value pairs. Unlike a normal map, the same key may appear several times.
Protected
fireFire event
Type of event
Arguments for event
Iterates over values stored under key
An empty array is returned if there are no values
Returns true if key
has any values
Iterates over all keys
Iteates over all keys and the count of values therein
Remove event listener
Iterates over all values, regardless of key. Same value may re-appear if it's stored under different keys.
Iterate over the values stored under key
.
If key does not exist, iteration is essentially a no-op
Returns true if the map is empty