JavaScript: Map Object

By Xah Lee. Date: . Last updated: .

New in JS2015.

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.

console.log(typeof Map === "function");

Parent

Parent of Map is Function.prototype.

console.log(Reflect.getPrototypeOf(Map) === Function.prototype);

Purpose

Purpose of Map is:

Facts about map:

[see the Map Object Tutorial]

How Map Determines Uniqueness of Keys

Constructor

Map Constructor

Properties

JavaScript Map Object

BUY ΣJS JavaScript in Depth