JS: Map Object
New in JS2015.
What is the Keyword “Map”
Map
is the value of the property key "Map"
of the Global Object
.
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 Object 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: Map Equality 🚀
- 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 Object
- JS: Map Constructor
- JS: Map.prototype