WeakMap API

The WeakMap global object is a constructor for WeakMap objects. WeakMap objects are collections of key-value pairs where the keys are objects only and the values can be of any type.

7 Total 5 Methods 2 Properties 2 Statics
  Show all

new WeakMap(…)

Creates a new WeakMap object.WeakMap.WeakMap([iterable])

[Symbol.toStringTag]

The initial value of the @@toStringTag property is the String value "WeakMap".w[Symbol.toStringTag]

delete(…)

Removes the specified element from a WeakMap object.w.delete(key)

get(…)

Returns the value associated to the key, or undefined if there is none.w.get(key)

has(…)

Returns a boolean indicating whether an element with the specified key exists or not.w.has(key)

WeakMap.prototype

The prototype of the WeakMap constructor.WeakMap.prototype

set(…)

Sets the value for the key in the WeakMap object. Returns the WeakMap object.w.set(key, value)

[Symbol.toStringTag]

property

The initial value of the @@toStringTag property is the String value "WeakMap". w[Symbol.toStringTag]

You seem to be offline. App may not work.