🏠 New in Low Baseline Support: Map getOrInsert()

February 14, 2026

caniuse · mdn · spec

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

Source features