a unique set of Accessors, that implements all builtin Set class methods, and fires a signal update upon mutation.

Type Parameters

Hierarchy

  • Set<A>
    • UnisetCollection

Implements

Constructors

Properties

size: number

Returns

the number of (unique) elements in Set.

[toStringTag]: string
[species]: SetConstructor
id: number
ctx: Context

Methods

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

    Parameters

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

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

          Returns void

    • Optional thisArg: any

    Returns void

  • Parameters

    • value: A

    Returns boolean

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

  • Iterates over values in the set.

    Returns IterableIterator<A>

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

    Returns IterableIterator<[A, A]>

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

    Returns IterableIterator<A>

  • Returns an iterable of values in the set.

    Returns IterableIterator<A>

Generated using TypeDoc