Type of keys.
Type of values. Must be objects, so that they may be weakly referenced.
Construct a WeakValueMap
. Optionally pass initial entries.
Entries to initially insert.
Returns the WeakValueMap
constructor. Override in subclasses for
idiomatic inheritance.
Get iterator over the map entries. Equivalent to
WeakValueMap.prototype.entries()
.
Searches all entries in the map, deleting those who's values have been destroyed. Usually, entries are deleted only on an access to an existing, non-referenceable value.
Remove all entries from the map.
Delete an entry from the map.
Key of entry.
Results in a boolean indicating if the map contained an entry
associated with key
before attempting deletion.
Get iterator over the map entries.
Call a function for each entry of the map.
Iteratee.
this
value applied on calls to callback
.
Gets value associated with a key in the map.
Key of entry whose value to retrieve.
Value of associated entry, or undefined
if non-existant, or
expired.
Check if the map contains a key.
Wether the map contains a referenceable entry associated with
key
.
Get iterator over the map keys.
Set entry in the map.
The map, for the purposes of chaining.
Get iterator over the map values.
Generated using TypeDoc
Map to weakly held values.