JS: Map.prototype

By Xah Lee. Date: . Last updated: .

(new in ECMAScript 2015)

What is Map.prototype

Purpose of Map.prototype object is to provide methods and properties useful for all map objects.

Map.prototype is the parent of all map objects.

console.assert(Reflect.getPrototypeOf(new Map()) === Map.prototype);

Properties

Value Properties

Function Properties

get and set

iteration