WeakMapWrapper
Extends
WeakMap
<K
,V
>
Type Parameters
• K extends object
• V
Properties
[toStringTag]
readonly
[toStringTag]:string
Inherited from
WeakMap.[toStringTag]
map
map:
WeakMap
<K
,V
>
Methods
delete()
delete(
key
):boolean
Removes the specified element from the WeakMap.
Parameters
• key: K
Returns
boolean
true if the element was successfully removed, or false if it was not present.
Inherited from
WeakMap.delete
get()
get(
key
):undefined
|V
Parameters
• key: K
Returns
undefined
| V
a specified element.
Inherited from
WeakMap.get
has()
has(
key
):boolean
Parameters
• key: K
Returns
boolean
a boolean indicating whether an element with the specified key exists or not.
Inherited from
WeakMap.has
set()
set(
key
,value
):this
Adds a new element with a specified key and value.
Parameters
• key: K
Must be an object or symbol.
• value: V
Returns
this
Inherited from
WeakMap.set