API Reference > bentleyjs-core > Collections > ObservableSet ObservableSet<T> Class Beta A standard Set that emits events when its contents change. Extends Set<T> Inherited methods Name Inherited from Description Symbol.iterator(): IterableIterator<T> Set.Symbol Iterates over values in the set. entries(): IterableIterator<[T, T]> Set<T> Returns an iterable of [v,v] pairs for every value v in the set. forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void Set<T> has(value: T): boolean Set<T> keys(): IterableIterator<T> Set<T> Despite its name, returns an iterable of the values in the set, values(): IterableIterator<T> Set<T> Returns an iterable of values in the set. Properties Name Type Description onAdded BeEvent<(item: T) => void> Emitted after item is added to this set. onCleared BeEvent<() => void> Emitted after this set's contents are cleared. onDeleted BeEvent<(item: T) => void> Emitted after item is deleted from this set. Set Static SetConstructor Inherited properties Name Type Inherited from Description size number Set<T> Symbol.toStringTag string Set.Symbol Defined in core/bentley/src/ObservableSet.ts Line 14 Last Updated: 13 June, 2024