basant307/AI_Governance_Project
048
1function findKey(map, doesMatch) {2 let result = undefined;3 for (const [key, value] of map) {4 if (doesMatch(value, key, map)) {5 result = key;6 break;7 }8 }9 return result;10}11 12export { findKey };13 