Skip to content

IReadOnlyObservableSet.forEach

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

Iterates over the entire set executing the callback for each item.

forEach<TContext>(
  callback: (this: TContext, item: TItem, key: TItem, set: this) => void,
  thisArg?: TContext
): void

Source reference: src/collections/observableSet/IReadOnlyObservableSet.ts:115.

Generic Parameters

  • TContext - The context type in which the callback is executed.

Parameters

  • callback: (this:TContext, item:TItem, key:TItem, set:this) => void
    The callback processing each item.

  • thisArg: TContext
    A value to use as context when processing items.

See also

Clone this wiki locally