Web features explorer

WeakMap

Widely available since 2018-01-29
Tags: javascript Groups: JavaScript > Collections

A WeakMap object holds key-value pairs that do not create strong references to its keys, such that value data can be associated with a key without preventing garbage collection of the key.

Learning resources on MDN

Browser support

Specifications