---
id: "getorinsert"
kind: "web-feature"
canonical: "https://timetostable.com/feature/getorinsert"
baseline: "low"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Map getOrInsert() (`getorinsert`)

The getOrInsert() and getOrInsertComputed() methods of Map objects get a value, setting and getting a default value if needed.

- **Group**: Maps
- **Baseline**: Newly Available
- **Newly Available Date**: 2026-02-14
- **Specification**: https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map.prototype.getorinsert
- **Constituent BCD keys**: 4

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 144 | 2025-10-14 |
| Firefox for Android | 144 | 2025-10-14 |
| Safari | 26.2 | 2025-12-12 |
| Safari on iOS | 26.2 | 2025-12-12 |
| Chrome | 145 | 2026-02-10 |
| Chrome Android | 145 | 2026-02-10 |
| Edge | 145 | 2026-02-14 |

