Results 1 - 7 of 7
The WeakMap
object 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.
The
WeakMap
.prototype
property represents the prototype for the
WeakMap
constructor.
The clear()
method used to remove all elements from a WeakMap
object, but is no longer part of ECMAScript and its implementations.
The delete()
method removes the specified element from a WeakMap
object.
The get()
method returns a specified element from a WeakMap
object.
The has()
method returns a boolean indicating whether an element with the specified key exists in the WeakMap
object or not.
The set()
method adds a new element with a specified key
and value
to a WeakMap
object.