Comment by altruios
12 hours ago
I'm the weird one here. In JS at least, I reach for reduce before map and filter in most cases. Often it is because I want the accumulator, particularly when I have a list of objects with various properties that I wish to sum together in a reduced object.
No comments yet
Contribute on Hacker News ↗