classdom::WeakMap
sys::Obj dom::WeakMap
@Js
WeakMap 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.
- delete
Removes any value associated to the key. Returns
trueif an element has been removed successfully.- get
Returns the value associated to the key, or
nullif there is none.- has
Return
trueif key exists in this map.- set
@Operator
This set(Obj key, Obj val)Sets value for given key in this map. Returns this.