basant307/AI_Governance_Project
048
1/**2 * Executes a provided function once for each entry in a Map.3 *4 * This function iterates through all entries of the Map and executes the callback function5 * for each entry. The callback receives the value, key, and the Map itself as arguments.6 *7 * @template K - The type of keys in the Map.8 * @template V - The type of values in the Map.9 * @param {Map<K, V>} map - The Map to iterate over.10 * @param {(value: V, key: K, map: Map<K, V>) => void} callback - A function to execute for each entry.11 * @returns {void}12 *13 * @example14 * const map = new Map([15 * ['a', 1],16 * ['b', 2],17 * ['c', 3]18 * ]);19 * forEach(map, (value, key) => {20 * console.log(`${key}: ${value}`);21 * });22 * // Output:23 * // a: 124 * // b: 225 * // c: 326 */27declare function forEach<K, V>(map: Map<K, V>, callback: (value: V, key: K, map: Map<K, V>) => void): void;28 29export { forEach };30 