Optional
entries: null | MultiKeyMap<Key, V> | readonly (readonly [Key, V])[]Get the number of entries in the map.
Delete the value for a given key.
Time complexity: O(1), given that the length of the key is constant.
Call a function for each entry in the map.
Optional
thisArg: anyGet a value for a given key.
Time complexity: O(1), given that the length of the key is constant.
Check if a value exists for a given key.
Time complexity: O(1), given that the length of the key is constant.
Add or update a value for a given key.
Time complexity: O(1), given that the length of the key is constant.
A utility class that works like a
Map
, but accepts multiple values as the key for each value.