Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Set<T, T, T>

Type parameters

  • T

  • T

  • T

Hierarchy

  • Set

Index

Properties

[Symbol.toStringTag]

[Symbol.toStringTag]: string

size

size: number

Methods

[Symbol.iterator]

  • Iterates over values in the set.

    Returns IterableIterator<T>

add

  • add(value: T): this
  • Parameters

    • value: T

    Returns this

clear

  • clear(): void
  • Returns void

delete

  • delete(value: T): boolean
  • Parameters

    • value: T

    Returns boolean

entries

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

    Returns IterableIterator<[T, T]>

forEach

  • forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: T, value2: T, set: Set<T>) => void
        • (value: T, value2: T, set: Set<T>): void
        • Parameters

          • value: T
          • value2: T
          • set: Set<T>

          Returns void

    • Optional thisArg: any

    Returns void

has

  • has(value: T): boolean
  • Parameters

    • value: T

    Returns boolean

keys

  • Despite its name, returns an iterable of the values in the set,

    Returns IterableIterator<T>

values

  • Returns an iterable of values in the set.

    Returns IterableIterator<T>