Options
All
  • Public
  • Public/Protected
  • All
Menu

a set that preserves the insertion order

Type parameters

  • T

Hierarchy

  • OrderedSet

Implements

  • Iterable<T>

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

__@toStringTag

__@toStringTag: symbol = Symbol('OrderedSet')

Accessors

size

  • get size(): number

Methods

__@iterator

  • __@iterator(): IterableIterator<T>

add

  • add(value: T): this

addAll

  • addAll(values: T[]): this

clear

  • clear(): void

delete

  • delete(value: T): boolean

deleteAll

  • deleteAll(values: T[]): boolean

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (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