The WeakMap
object is a collection of key/value pairs in which the keys are weakly referenced.
The keys must be objects and the values can be arbitrary values.
You can learn more about WeakMaps in the section WeakMap object in Keyed collections.
Documentation WeakMap by Mozilla Contributors, licensed under CC-BY-SA 2.5.