Юниверс DG SDK UI
v2.15.0

Класс ObservableSet<T>

Параметры типа

  • T = any

Реализует

Индекс

Конструкторы

Свойства

"[iterator]": () => IterableIterator<T>
"[toStringTag]": "Set"
$mobx: {}
changeListeners: any
dehancer: any
enhancer: (newV: any, oldV: any) => any
interceptors: any
name: string

Акцессоры

  • get size(): number

    Возвращает number

    the number of (unique) elements in Set.

Методы

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

    Параметры

    • value: T

    Возвращает this

  • Возвращает void

  • Removes a specified value from the Set.

    Параметры

    • value: any

    Возвращает 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.

    Возвращает IterableIterator<[T, T]>

  • Executes a provided function once per each value in the Set object, in insertion order.

    Параметры

    • callbackFn: (value: T, value2: T, set: Set<T>) => void
    • OptionalthisArg: any

    Возвращает void

  • Параметры

    • value: any

    Возвращает 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.

    Возвращает IterableIterator<T>

  • Возвращает Set<T>

  • Returns a string representation of an object.

    Возвращает string

  • Returns an iterable of values in the set.

    Возвращает IterableIterator<T>