DEV Community

Discussion on: What s wrong with Array.reduce ?

Collapse
 
jz222 profile image
Timo Zimmermann

My personal rule of thumb is to use a for-loop if the reduce expression doesn’t fit in one line. That doesn’t mean that reduce functions that take up multiple lines are in general hard to read