Skip to content

IReadOnlyObservableMap.forEach

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

Iterates over the entire map executing the callback for each pair.

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

Source reference: src/collections/observableMap/IReadOnlyObservableMap.ts:67.

Generic Parameters

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

Parameters

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

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

See also

Clone this wiki locally