On this page
Map
Prev: Promise | Up: builtins | Next: Set
Rel: Collections Guide, Prototype Chain & new Flow
Ref: MDN Web Docs — Map
Tags: #public #web #javascript #builtins #map #index
Overview
Insertion-ordered key-value collection allowing any value (including objects) as keys.
Core (#tier/core)
- Map.get — Retrieves the value associated with
key(orundefined);set()inserts/updates and returnsmapfor chaining. - Map.has — Returns
trueifkeyexists inmap(distinguishing missing keys from keys mapped toundefined).
Standard (#tier/standard)
- Map.groupBy — Groups elements of an iterable into a
Mapkeyed bycallbackFn(item, index)(ES2024).
Linked from
Related notes
- tuts/javascript/builtins Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Map/get Linked here; links to this page; shared tags: #builtins, #javascript, #map, #web
- tuts/javascript/builtins/Map/groupBy Linked here; links to this page; shared tags: #builtins, #javascript, #map, #web
- tuts/javascript/builtins/Map/has Linked here; links to this page; shared tags: #builtins, #javascript, #map, #web
- tuts/javascript/builtins/Promise Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Set Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/collections_map_set_weak Linked here; shared tags: #builtins, #javascript, #web
- tuts/javascript/builtins/Promise/resolve links to this page; shared tags: #builtins, #javascript, #web
- tuts/javascript/tutorials/prototype_chain_and_new_flow Linked here; shared tags: #javascript, #web
- tuts/javascript/builtins/Array shared tags: #builtins, #index, #javascript, #web