Skip to content

ReadOnlyObservableSet.forEach

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ReadOnlyObservableSet<TItem> / forEach method

Iterates over the entire collections executing the callback for each.

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

Source reference: src/collections/observableSet/ReadOnlyObservableSet.ts:235.

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