🏠 New in High Baseline Support: Map (initial support)
January 29, 2018
caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map-objects’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map-constructor’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.clear’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.delete’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.entries’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.foreach’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.get’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.has’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.keys’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.set’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-get-map.prototype.size’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.values’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype-@@iterator’, ‘https://tc39.es/ecma262/multipage/keyed-collections.html#sec-get-map-@@species’])
Map objects hold key-value pairs and remember the original insertion order of the keys.
Source features
javascript.builtins.Map
[mdn]javascript.builtins.Map.Map
[mdn]javascript.builtins.Map.delete
[mdn]javascript.builtins.Map.get
[mdn]javascript.builtins.Map.has
[mdn]javascript.builtins.Map.set
[mdn]javascript.builtins.Map.clear
[mdn]javascript.builtins.Map.size
[mdn]javascript.builtins.Map.entries
[mdn]javascript.builtins.Map.keys
[mdn]javascript.builtins.Map.values
[mdn]javascript.builtins.Map.forEach
[mdn]javascript.builtins.Map.Map.iterable_allowed
[mdn]javascript.builtins.Map.key_equality_for_zeros
[mdn]javascript.builtins.Map.Map.null_allowed
[mdn]javascript.builtins.Map.@@iterator
[mdn]