JS: Map (class)

By Xah Lee. Date: . Last updated: .

(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:

Constructor

Properties

JavaScript. Map Object