WeakMap

baseline logo Widely available in browsers but not in WebViews

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.