... shouldn't that be, on the 2nd line — const entries = Object.fromEntries(arr) ??
Thought you'd want to know. But this is great and I learned a lot from both this and your other guide on for...in (Objects) and for...of (Arrays). Keep up the great work!
Software dev at Netflix | DC techie | Conference speaker | egghead Instructor | TC39 Educators Committee | Girls Who Code Facilitator | Board game geek | @laurieontech on twitter
Great write up & explanation, thank you! One possible typo — in your final code example, you say —
However, in the code example that follows, you have —
... shouldn't that be, on the 2nd line —
const entries = Object.fromEntries(arr)
??Thought you'd want to know. But this is great and I learned a lot from both this and your other guide on for...in (Objects) and for...of (Arrays). Keep up the great work!
Thanks for catching that! I’ll take a look.