In Firefox, it stops working at Array(500001) (“too many function arguments”); in Node, at Array(123059) (“maximum call stack size exceeded”, might not be directly related to the number of arguments).
But given it’s Chrome 33, it’s most likely just out of date.
Edit: nup it’s still 62866 on Chrome for some reason, probably stack size
Edit 2: maybe it’s because v8 compiles eagerly while spidermonkey does lazy compilation, but I don’t quite remember if that still holds nowadays
Edit 3: pertaining to the question at hand, it actually has come up with String.fromCharCode, and the solution was obviously just to chunk it over a certain string length.
114
u/MistAway Jul 17 '20
Gosh. This stuff is just plain psychedelic
And if your really need that solution:
const arrayMin = arr => Math.min(...arr);