If I have a Map, defined like so:
let map: Map<string, number> = new Map();
map.set("a", 12);
map.set("b", 124);
map.set("c", 14);
map.set("d", 155);
How would I get the key of the biggest value, in this case, the output would be "d"
I've tried a few answers that work with Object's(i.e {}) but none of those work since they access the object using obj[key].
Typescript Playground link with the code: here