Map (initial support)
Widely available since 2018-01-29 (baseline high)
Map objects hold key-value pairs and remember the original insertion order of the keys.
Compatibility
- Chrome 38 Released on 2014-10-07
- Chrome Android 38 Released on 2014-10-08
- Edge 12 Released on 2015-07-29
- Firefox 13 Released on 2012-06-05
- Firefox for Android 14 Released on 2012-06-26
- Safari 8 Released on 2014-10-16
- Safari on iOS 8 Released on 2014-09-17
MDN docs
Specifications
- 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
BCD data
- javascript.builtins.Map
- javascript.builtins.Map.Map
- javascript.builtins.Map.delete
- javascript.builtins.Map.get
- javascript.builtins.Map.has
- javascript.builtins.Map.set
- javascript.builtins.Map.clear
- javascript.builtins.Map.size
- javascript.builtins.Map.entries
- javascript.builtins.Map.keys
- javascript.builtins.Map.values
- javascript.builtins.Map.forEach
- javascript.builtins.Map.Map.iterable_allowed
- javascript.builtins.Map.key_equality_for_zeros
- javascript.builtins.Map.Map.null_allowed
- javascript.builtins.Map.@@iterator