js-util

Home > rc-js-util > dictionaryForEach

dictionaryForEach() function

Like Array.forEach but for arbitrary objects.

Signature:

export declare function dictionaryForEach<TDict extends object, TKey extends keyof TDict>(dictionary: TDict, callback: (item: TDict[TKey], key: TKey, dictionary: TDict) => void): void;

Parameters

Parameter Type Description
dictionary TDict  
callback (item: TDict[TKey], key: TKey, dictionary: TDict) => void  

Returns:

void

Remarks

See dictionaryForEach().