WeakMap
Widely available
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.
Compatibility
- Chrome 36 Released on 2014-07-16
- Chrome Android 36 Released on 2014-07-16
- Edge 12 Released on 2015-07-29
- Firefox 6 Released on 2011-08-16
- Firefox for Android 6 Released on 2011-08-16
- Safari 8 Released on 2014-10-16
- Safari on iOS 8 Released on 2014-09-17
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.WeakMap
- javascript.builtins.WeakMap.WeakMap
- javascript.builtins.WeakMap.WeakMap.iterable_allowed
- javascript.builtins.WeakMap.WeakMap.null_allowed
- javascript.builtins.WeakMap.delete
- javascript.builtins.WeakMap.get
- javascript.builtins.WeakMap.has
- javascript.builtins.WeakMap.set
- javascript.builtins.WeakMap.symbol_as_keys