Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MutableSet<V>

Type parameters

  • V

Hierarchy

Index

Properties

Set

Set: SetConstructor

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly size

size: number

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<Mutable<V>>
  • Iterates over values in the set.

    Returns IterableIterator<Mutable<V>>

add

  • Parameters

    Returns this

clear

  • clear(): void
  • Returns void

delete

  • delete(value: Mutable<V>): boolean
  • Parameters

    Returns boolean

entries

  • Returns an iterable of [v,v] pairs for every value v in the set.

    Returns IterableIterator<[Mutable<V>, Mutable<V>]>

forEach

has

  • Parameters

    Returns boolean

keys

  • keys(): IterableIterator<Mutable<V>>
  • Despite its name, returns an iterable of the values in the set,

    Returns IterableIterator<Mutable<V>>

values

  • values(): IterableIterator<Mutable<V>>
  • Returns an iterable of values in the set.

    Returns IterableIterator<Mutable<V>>

Generated using TypeDoc