An unordered iterable collection of key/value pairs that cannot contain two instances of the same key. It optionally enforces the type of the key and the type of the associated value.
This creates a Map that may check the types of the keys and/or values.
if supplied, this must be a class function/constructor.
if supplied, this must be a class function/constructor.
This creates a Map that may check the types of the keys and/or values.
if supplied, this must be one of: 'number' or 'string' for the key type.
if supplied, this must be a class function/constructor.
This creates a Map that may check the types of the keys and/or values.
if supplied, this must be a class function/constructor.
if supplied, this must be one of: 'number', 'string', 'boolean', or 'function' for the value type.
This creates a Map that may check the types of the keys and/or values.
if supplied, this must be one of: 'number' or 'string' for the key type.
if supplied, this must be one of: 'number', 'string', 'boolean', or 'function' for the value type.
Gets the number of associations in the Map.
Gets an object that you can use for iterating over the Map.
Adds a key-value association to the Map, or replaces the value associated with the key if the key was already present in the map.
boolean
Adds all of the key-value pairs of another Map to this Map.
Clears the Map, removing all key-value associations.
any
Returns whether the given key is in this Map.
boolean
Makes a shallow copy of this Map.
Returns the value associated with a key.
any
Removes a key (if found) from the Map.
boolean
Produces a JavaScript Array of key/value pair objects from the contents of this Map.
Array<any>
Produces a Set that provides a read-only view onto the keys of this Map.