Same for Michael. Useless to not use a reducer instead of Math.min and Math.max if it has worth performance.
Just to be clear, the fact is that your function approximately costs: Math.min: one loop over the array Math.max: one loop over the array Math.minMax: one loop over the array Math.minMax do in one pass what Math.min and Math.max do in two passes. That's the key point. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

