Skip to content

ReadOnlyObservableMap.forEach

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

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

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

Source reference: src/collections/observableMap/ReadOnlyObservableMap.ts:108.

Generic Parameters

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

    Default value: void.

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