naveen.chwl at gmail.com
Mon Oct 2 18:00:32 UTC 2017
I would be curious about the reduce version that doesn't create a new
object/array on every iteration:
const minMax =
accumulator.min = Math.min(currentValue, accumulator.min);
accumulator.max = Math.max(currentValue, accumulator.max);
If you could let me know the relative performance of this in the benchmark
it would be great.
On Mon, 2 Oct 2017 at 21:43 Xavier Stouder <xavier at stouder.io> wrote:
> JDecker: Just added your solution on the benchmark, it beats every
> others solution and it's a elegant solution.
> Kai Zhu: We can't see the screenshot. But please take in consideration
> that it's been a long time that ECMAScript isn't only used in webapp,
> and that some of applications using it can eat more than a million
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss