# map

Locked, prototype-pollution-resistant copy of the global `Map` constructor.

The `Map` constructor is wrapped in a [`createMap`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/map/#api-createMap) factory and `Map.groupBy` (where available) is captured at module-load time and frozen into a tamper-proof namespace, so keyed-collection construction keeps working even if the global `Map` is later patched. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/map/
This file: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/map.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
