Skip to content

ReadOnlyObservableCollection.forEach

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions

Executes the given callback for each item in the collection.

This is a public method.

public forEach(callbackfn: (item: TItem, index: number, collection: IReadOnlyObservableCollection<TItem>) => void): void

Parameters

See


Executes the given callback for each item in the collection.

This is a public method.

public forEach<TContext>(callbackfn: (this: TContext, item: TItem, index: number, collection: IReadOnlyObservableCollection<TItem>) => void, thisArg: TContext): void

Template Parameters

  • TContext: the context type in which the callback is executed.

Parameters

  • callbackfn: Function, the callback processing each item.

    Parameters:

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

See

Clone this wiki locally