A WeakMap that maps keys to Sets of values, allowing multiple values per key.

Hierarchy

  • WeakMap
    • MultiWeakMap

Constructors

Methods

Constructors

  • Parameters

    • Optionalentries: readonly (readonly [WeakKey, any])[]

    Returns MultiWeakMap

  • Parameters

    • iterable: Iterable<readonly [any, any]>

    Returns MultiWeakMap

Methods

  • Removes the specified element from the WeakMap.

    Parameters

    • key: any
    • ...values: any[]

    Returns void

    true if the element was successfully removed, or false if it was not present.

  • Parameters

    • key: any
    • value: any
    • ...args: any

    Returns any

    a boolean indicating whether an element with the specified key exists or not.