JavaScript Maps

A map can store key-value pairs with any data type for the keys. The keys’ original placement order is retained by a Map. Method Description Map() Creates a new Map object. clear() Removes all key/value pairs from the Map object. delete(key) Removes the key/value pair with the specified key. entries() Returns a new Iterator object …

JavaScript Maps Read More »