DEV Community

loading...

Discussion on: Which Array Function When?

Collapse
pedrootero profile image
Pedro Otero Prada

Great article. Reduce is indeed hard to grasp at first. I took very long to learn to use it and now I can't live without it :)

It's also worth noting that these functions become more powerful when you chain them as needed, without declaring new variables just to hold a result and improving readability of code. But chain responsibly, you can also make a mess out of it.