I'm looking to implement something similar to the following:
let myMap = new Map<string, any>();
myMap.set("aaa", {a: 1, b: 2, c:3});
myMap.set("bbb", {a: 1, b: 2, c:6});
myMap.set("ccc", {a: 1, b: 2, c:9});
let cs = myMap.values().map(x => x.c);
I am encountering an issue while trying to select the 'c' property from all entries in the map. The error message is:
Property 'map' does not exist on type 'IterableIterator<any>'.
Is there a more elegant solution for this problem?