DEV Community 👩‍💻👨‍💻

Discussion on: Top 20 JavaScript tips and tricks to increase your Speed and Efficiency

techygeeky profile image
Kapil Raghuwanshi🖥 Author

Well, of course above methods seems simpler for finding min/max but one should not underestimate the power of reduce in JavaScript. There are several technique where you can solve problems mostly in one reduce statements only.

Thread Thread
erasmuswill profile image
Wilhelm Erasmus

But in this case a helper method that does the full job exists so why bother with reduce for this use case? I admittedly do not use it enough but just saying