forEach

Iterates over every key-value pair in the map and passes them to the given function.

Parameters

function

the function to apply to every key-value pair.