Package: effect
Module: MutableHashMap
Runs a callback for each key-value pair in the MutableHashMap.
When to use
Use to run a synchronous side-effecting callback for every key-value pair in an existing mutable map.
Details
Iteration follows the backing map’s order. The callback receives the value
first and the key second, matching Map.prototype.forEach.
See
keys for iterating only keysvalues for iterating only valuesSignature
declare const forEach: { <K, V>(f: (value: V, key: K) => void): (self: MutableHashMap<K, V>) => void; <K, V>(self: MutableHashMap<K, V>, f: (value: V, key: K) => void): void; }
Since v2.0.0