logoalt Hacker News

altruiosyesterday at 10:12 PM0 repliesview on HN

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.