iterate through map typesciprt code example
Example: typescript loop over map with value as array
myMap.forEach((value: boolean, key: string) => {
console.log(key, value);
});
myMap.forEach((value: boolean, key: string) => {
console.log(key, value);
});