Home > rc-js-util > dictionaryForEach
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;
Parameter | Type | Description |
---|---|---|
dictionary | TDict | |
callback | (item: TDict[TKey], key: TKey, dictionary: TDict) => void |
Returns:
void
See dictionaryForEach().