Check out example codes for "typescript loop over map with value as array". It will help you in understanding the concepts better.
Code Example 1
myMap.forEach((value: boolean, key: string) => {
console.log(key, value);
});
Learn ReactJs, React Native from akashmittal.com