Stores a map of objects with weak references to the keys, allowing them to be garbage collected. Both keys and values can be iterated over, unlike a WeakMap.

Hierarchy

  • WeakMap
    • IterableWeakMap

Constructors

  • Parameters

    • Optionalentries: Iterable<[any, any], any, any> = []

      The initial entries.

    Returns IterableWeakMap

Methods

  • Enumerate the entries.

    Returns Generator<[any, any], void, any>

  • Clear all values from the map.

    Returns void

  • Remove a key from the map.

    Parameters

    • key: any

      The key to remove.

    Returns boolean

  • Enumerate the entries.

    Returns Generator<[any, any], void, any>

  • Retrieve a value from the map.

    Parameters

    • key: any

      The value's key.

    Returns any

  • Enumerate the keys.

    Returns Generator<any, void, any>

  • Place a value in the map.

    Parameters

    • key: any

      The key.

    • value: any

      The value.

    Returns IterableWeakMap

  • Enumerate the values.

    Returns Generator<any, void, any>