Provides a readonly variant of SvelteSet wrapping an instance of SvelteSet as the source.

Type Parameters

  • T
Implements

Constructors

Accessors

  • get size(): number
  • Returns the number of unique elements in this set.

    Returns number

Methods

  • Executes a provided function once for each value in this set, in insertion order.

    Parameters

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

      Callback function.

    • OptionalthisArg: unknown

      Optional this reference for callback function.

    Returns void

  • Returns a boolean indicating whether an element with the specified value exists in this set or not.

    Parameters

    • value: T

      Value to test.

    Returns boolean