Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

  • T

Hierarchy

  • Set

Index

Properties

[toStringTag]: string
size: number
returns

the number of (unique) elements in Set.

Methods

  • Iterates over values in the set.

    Returns IterableIterator<T>

  • Appends a new element with a specified value to the end of the Set.

    Parameters

    • value: T

    Returns internal.Set<T>

  • clear(): void
  • Returns void

  • delete(value: T): boolean
  • Removes a specified value from the Set.

    Parameters

    • value: T

    Returns boolean

    Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

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

    Returns IterableIterator<[T, T]>

  • forEach(callbackfn: ((value: T, value2: T, set: internal.Set<T>) => void), thisArg?: any): void
  • Executes a provided function once per each value in the Set object, in insertion order.

    Parameters

    • callbackfn: ((value: T, value2: T, set: internal.Set<T>) => void)
    • Optional thisArg: any

    Returns void

  • has(value: T): boolean
  • Parameters

    • value: T

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the Set or not.

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

    Returns IterableIterator<T>

  • Returns an iterable of values in the set.

    Returns IterableIterator<T>

Generated using TypeDoc