WeakSet
Widely available
A WeakSet
object stores unique values of any type without creating strong references to the values, such that membership in the set does not prevent garbage collection of the value.
Compatibility
- Chrome 36 Released on 2014-07-16
- Chrome Android 36 Released on 2014-07-16
- Edge 12 Released on 2015-07-29
- Firefox 34 Released on 2014-12-01
- Firefox for Android 34 Released on 2014-12-01
- Safari 9 Released on 2015-09-30
- Safari on iOS 9 Released on 2015-09-16
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.WeakSet
- javascript.builtins.WeakSet.WeakSet
- javascript.builtins.WeakSet.WeakSet.iterable_allowed
- javascript.builtins.WeakSet.WeakSet.null_allowed
- javascript.builtins.WeakSet.add
- javascript.builtins.WeakSet.delete
- javascript.builtins.WeakSet.has
- javascript.builtins.WeakSet.symbol_as_keys