is not assignable to type 'any[] | Iterable<any> | (Iterable<any> & any[]) | (any[] & Iterable<any>) | null | undefined'. keyvalue data.reduce code example
Example: typescript loop over map with value as array
myMap.forEach((value: boolean, key: string) => {
console.log(key, value);
});