RoadmapShopEvents
Skip to main content

Home > @rushstack/node-core-library > ProtectableMap > forEach

ProtectableMap.forEach() method

Performs an operation for each (key, value) entries in the map.

Signature:

forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;

Parameters

ParameterTypeDescription
callbackfn(value: V, key: K, map: Map<K, V>) => void
thisArgany(Optional)

Returns:

void