3 ms·Math.min.apply(Math, [1, 2, 3]) Math.max.apply(Math, [1, 2, 3]) Could just be: Math.max(...[1, 2, 3])by simonlc 10y agoMath.min.apply(Math, [1, 2, 3]) Math.max.apply(Math, [1, 2, 3]) Could just be: Math.max(...[1, 2, 3])hk__2 10y agoThe JS code is written in ES5 so this syntax is not available.gingerrr 10y agoThere are several other examples which show both ES6 and ES5 syntax, there is no reason the better ES6 syntax couldn't be shown here as well.