const map = new Map();
map.set('foo', 'bar');
// none of these are defined as entries is an
// iterator not a list
map.entries.map
map.entries.forEach
map.entries.filter
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I agree, would've been nice with key, value. But forEach on arrays is val, key - so I can see why they did it that way.
I don't fully understand what you mean about entries though?
See it's weird that arrays are forEach((val, index)), and Object.entries(object).forEach(([key, value])... Just seems inconsistent.