As shown on MDN, Map's forEach callback is called with value first, and then key. E.g.:
map.forEach(function(value, key, map) { ... })
Seems like key, value is a lot more common than value, key. Even the Map constructor expects an array of [key, value] pairs.
.map(function(_, value) { ... });Array.prototype.ampis described in ECMA-262 Edition 5 ecma-international.org/ecma-262/5.1/#sec-15.4.4.19Array.prototype.forEach, whose callback function takes its parameters in the ordervalue,index, where map items (obviously) are accessed by key rather than by index.