Class ReadonlySvelteSet<T>
Type Parameters
- T
              
                  Implements
              
           
           
           Index
Constructors
constructor
Methods
[iterator]
- Iterates over values in the set. - Returns IterableIterator<T>
entries
- Returns an iterable of [v,v] pairs for every value - vin the set.- Returns IterableIterator<[T, T]>
forEach 
- forEach(
 callbackfn: (value: T, value2: T, set: ReadonlySvelteSet<T>) => void,
 thisArg?: unknown,
 ): voidExecutes a provided function once for each value in this set, in insertion order. Parameters- callbackfn: (value: T, value2: T, set: ReadonlySvelteSet<T>) => voidCallback function. 
- OptionalthisArg: unknown- Optional this reference for callback function. 
 Returns void
- callbackfn: (value: T, value2: T, set: ReadonlySvelteSet<T>) => void
has
- Returns a boolean indicating whether an element with the specified value exists in this set or not. - Parameters- value: TValue to test. 
 - Returns boolean
- value: T
keys
- Despite its name, returns an iterable of the values in the set. - Returns IterableIterator<T>
subscribe
- Parameters- handler: Subscriber<ReadonlySvelteSet<T>>Callback function that is invoked on update / changes. 
 - Returns Unsubscriber- Unsubscribe function. 
- handler: Subscriber<ReadonlySvelteSet<T>>
values
- Returns an iterable of values in the set. - Returns IterableIterator<T>
Provides a readonly variant of SvelteSet wrapping an instance of SvelteSet as the source.