title: Javascript: Finding highest value in Map() vs Object
body: <p>I've been using objects as hash tables and I've been getting the highest value from them by <code>Objects.keys(foo).reduce((a,b) =&gt; foo[a] &gt; foo[b] ? a : b)</code> . However, I've switched to using Maps() .  What is the ideal way to iterate through a Map object to get the highest value?</p>