JS: Map (class)
(new in JS: ECMAScript 2015)
What is the Keyword “Map”
Map
is the value of the property key "Map"
of the Global Object
.
console.log(globalThis["Map"] === Map);
Type
Type of Map
is a function.
typeof Map === "function"
Parent
Parent of Map
is Function.prototype.
Reflect.getPrototypeOf(Map) === Function.prototype
Purpose
Purpose of Map
is:
- To create instance of Map Object.
- Used as a namespace to hold static methods.
- Holds the property key
"prototype"
. Its value is the parent of all instance of map.
Constructor
Properties
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