Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadonlySet<T, T>

Type parameters

  • T

  • T

Hierarchy

  • ReadonlySet

Index

Properties

size

size: number

Methods

[Symbol.iterator]

  • Iterates over values in the set.

    Returns IterableIterator<T>

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: ReadonlySet<T>) => void, thisArg?: any): void
  • Parameters

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

          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>