loading...

re: Maps in ES6 - A Quick Guide VIEW POST

TOP OF THREAD FULL DISCUSSION
re: 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 w...
 

See it's weird that arrays are forEach((val, index)), and Object.entries(object).forEach(([key, value])... Just seems inconsistent.

Code of Conduct Report abuse