WeakSet

baseline logo Widely available in browsers but not in WebViews

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.