WeakMap allows mapping of object keys to arbitrary values.

The keys are considered to be weak references on static targets.

See Map for documentation details.

See also:

Constructor

new()

Creates a new WeakMap.

Methods