Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The get() method of Map instances returns the value corresponding to the key in this Map, or undefined if there is none. Object values are returned as the same reference that was originally stored, not as a copy, so mutations to the returned object will be reflected anywhere that reference is held, including inside the Map.
The key of the value to return from the Map object. Object keys are compared by reference, not by value.
The value associated with the specified key in the Map object. If the key can't be found, undefined is returned.
| ECMAScript® 2027 Language Specification # sec-map.prototype.get |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 22, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.