3 ms·
Watch out for this even more obscure gotcha – if you're dealing with large enough arrays, V8 will throw an error: [].push(...new Array(120520)) results in
by TehShrike 7y ago
Watch out for this even more obscure gotcha – if you're dealing with large enough arrays, V8 will throw an error:
[].push(...new Array(120520))
results in `RangeError: Maximum call stack size exceeded` on node v10.15.3.
[ ...new Array(120520)]
works fine though!