<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [dictionaryForEach](./rc-js-util.dictionaryforeach.md)

## dictionaryForEach() function

Like `Array.forEach` but for arbitrary objects.

**Signature:**

```typescript
export declare function dictionaryForEach<TDict extends object, TKey extends keyof TDict>(dictionary: TDict, callback: (item: TDict[TKey], key: TKey, dictionary: TDict) => void): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

dictionary


</td><td>

TDict


</td><td>


</td></tr>
<tr><td>

callback


</td><td>

(item: TDict\[TKey\], key: TKey, dictionary: TDict) =&gt; void


</td><td>


</td></tr>
</tbody></table>
**Returns:**

void

## Remarks

See [dictionaryForEach()](./rc-js-util.dictionaryforeach.md)<!-- -->.

