JS: Map.prototype
New in JS2015.
What is Map.prototype
Map.prototype
is the value of the property key "prototype"
of the function Map
. 〔see Map Object〕
Map.hasOwnProperty("prototype")
Type
Type of Map.prototype
is Object
.
typeof Map.prototype === "object"
Parent
Parent of Map.prototype
is Object.prototype
.
Reflect.getPrototypeOf(Map.prototype) === Object.prototype
Purpose
Purpose of Map.prototype
object is to provide methods and properties useful for all map instances.
Map.prototype
is the parent of all map instances.
Reflect.getPrototypeOf(new Map()) === Map.prototype
〔see the Map Object Tutorial〕
Properties
Value Properties
Function Properties
get and set
- JS: Map.prototype.get
- JS: Map.prototype.set
- JS: Map.prototype.has
- JS: Map.prototype.delete
- JS: Map.prototype.clear
iteration
Map.prototype[Symbol.iterator]
same as JS: Map.prototype.entries
JavaScript, Map Object
- JS: Map Tutorial
- JS: Difference, Object vs Map
- JS: Literal Expression for Map
- JS: Nested Map
- JS: Iterate Map Object
- JS: Convert Object to Map 💠
- JS: Convert Map to Object 💠
- JS: Test Equality of Map Objects 💠
- JS: Map Filter 💠
- JS: Swap Key Value of Map 💠
- JS: Sort Map 💠
- JS: Truncate Map 💠
- JS: Map Substract 💠
- JS: How Map Determines Uniqueness of Keys
- JS: Map (class)
- JS: Map Constructor
- JS: Map.prototype