JS: Map.prototype
(new in ECMAScript 2015)
What is Map.prototype
Purpose of Map.prototype object is to provide methods and properties useful for all map objects.
Map.prototype is the parent of all map objects.
console.assert(Reflect.getPrototypeOf(new Map()) === Map.prototype);
Properties
Value Properties
Function Properties
get and set
- JS: Map.prototype.get
- JS: Map.prototype.getOrInsert
- JS: Map.prototype.getOrInsertComputed
- JS: Map.prototype.set
- JS: Map.prototype.has
- JS: Map.prototype.delete
- JS: Map.prototype.clear
iteration
Map.prototype[Symbol.iterator]same as Map.prototype.entries