Results 1 - 16 of 16

Map

The Map object is a simple key/value map. Any value (both objects and primitive values) may be used as either a key or a value.
ECMAScript6 JavaScript Map

get Map[@@species]

The Map[@@species] accessor property returns the Map constructor.
ECMAScript6 JavaScript Map Property

Map.prototype

The Map.prototype property represents the prototype for the Map constructor.
ECMAScript6 JavaScript Map Property

Map.prototype.size

The size accessor property returns the number of elements in a Map object.
ECMAScript6 JavaScript Map Property

Keyed collections

This chapter introduces collections of data which are ordered by a key; Map and Set objects contain elements which are iterable in the order of insertion.
Collections Guide JavaScript Map set

Map.prototype.clear()

The clear() method removes all elements from a Map object.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype.delete()

The delete() method removes the specified element from a Map object.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype.forEach()

The forEach() method executes a provided function once per each key/value pair in the Map object, in insertion order.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype.get()

The get() method returns a specified element from a Map object.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype.has()

The has() method returns a boolean indicating whether an element with the specified key exists or not.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype.set()

The set() method adds or updates an element with a specified key and value to a Map object.
ECMAScript6 JavaScript Map Method Prototype

Map.prototype[@@iterator]()

The initial value of the @@iterator property is the same function object as the initial value of the entries property.
ECMAScript6 Iterator JavaScript Map Method Prototype Reference

Map.prototype[@@toStringTag]

The Map[@@toStringTag] property has an initial value of "Map".
ECMAScript6 JavaScript Map Property Prototype Reference

Map.prototype.entries()

The entries() method returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order.
ECMAScript6 Iterator JavaScript Map Method Prototype

Map.prototype.keys()

The keys() method returns a new Iterator object that contains the keys for each element in the Map object in insertion order.
ECMAScript6 Iterator JavaScript Map Method Prototype

Map.prototype.values()

The values() method returns a new Iterator object that contains the values for each element in the Map object in insertion order.
ECMAScript6 Iterator JavaScript Map Method Prototype