Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores a set of objects with weak references to them, allowing them to be garbage collected. Can be iterated over, unlike a WeakSet.

Hierarchy

  • WeakSet
    • IterableWeakSet

Index

Constructors

Methods

Properties

Constructors

  • Parameters

    • entries: Iterable<any> = []

    Returns IterableWeakSet

Methods

  • Add a value to the set.

    Parameters

    • value: any

      The value to add.

    Returns IterableWeakSet

  • delete(value: any): boolean
  • Delete a value from the set.

    Parameters

    • value: any

      The value to delete.

    Returns boolean

  • has(value: any): boolean
  • Whether this set contains the given value.

    Parameters

    • value: any

      The value to test.

    Returns boolean

  • values(): Generator<any, void, any>
  • Enumerate the collection.

    Returns Generator<any, void, any>

  • [iterator](): Generator<any, void, any>
  • Enumerate the values.

    Returns Generator<any, void, any>

Properties

#map: any = ...

The backing iterable weak map.