testcase
JavaScript's reduce could be really helpful
I love using functions like map
, filter
or reduce
. They are an important part of my arsenal and I simply can’t stop using them. Today I had to solve an interesting problem and I ended up using reduce
.