Values stored under keys
Type of data structure managing values
Returns true if the map is empty
Returns the number of keys
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.
ProtectedfireFire event
Type of event
Arguments for event
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.
Like a
Mapbut multiple values can be stored for each key. Duplicate values can be added to the same or even a several keys.Three pre-defined MapOf's are available:
Adding
Finding/accessing
Removing
Metadata about the map:
Events can be listened to via
addEventListeneraddedKey,addedValue- when a new key is added, or when a new value is addedclear- when contents are cleareddeleteKey- when a key is deletedExample: Event example