3 ms·
That hack isn't guaranteed to work with long lists, since the standard allows a fixed limit on argument count. For example, in Node 12: > Math.max(..._.range
by tlb 7y ago
That hack isn't guaranteed to work with long lists, since the standard allows a fixed limit on argument count. For example, in Node 12:
> Math.max(..._.range(0, 1000000))
Thrown:
RangeError: Maximum call stack size exceeded