Community

Functional JavaScript: How to use array reduce for more than just numbers

(James Sinclair) The array reduce method is really powerful. But people often run into trouble as soon as they step beyond the basic examples. Simple things like addition and multiplication are fine.