JavaScript
JavaScript tried to create an array with an invalid length
JavaScript rejected an array length because it was negative, non-integer, or too large for the runtime.
JavaScript
JavaScript rejected an array length because it was negative, non-integer, or too large for the runtime.
Observed message
RangeError: invalid array length
Why it happens
How to fix it
Official reference
MDN: RangeError: invalid array lengthRelated errors
Explore more