Skip to content

IReadOnlyObservableCollection.forEach

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

Iterates over the entire collections executing the callback for each.

forEach<TContext>(
  callback: (this: TContext, item: TItem, index: number, collection: this) => void,
  thisArg?: TContext
): void

Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:78.

Generic Parameters

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

Parameters

  • callback: (this:TContext, item:TItem, index:number, collection:this) => void
    The callback processing each item.

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

See also

Clone this wiki locally