← You've been writing this `reduce` a hundred times. `Object.groupBy` does it in one.Quiz
Object.groupBy and Map.groupBy
Grouping an array by a key without the hand-written reduce. What Object.groupBy returns, when to reach for Map.groupBy instead, and the null-prototype detail that trips people up.
questions6
pass mark70%
feedbackinstant
No account needed. Every answer is explained as you go, with a reference to the spec or MDN — pass and you can claim a certificate.