typescript loop through array of objects code example
Example 1: object iteration in typescript
Object.entries(obj).forEach(
([key, value]) => console.log(key, value);
);
Example 2: typescript loop over map with value as array
myMap.forEach((value: boolean, key: string) => {
console.log(key, value);
});