5 ms·
In JS, arrays are just objects where the indices are keys. There is a small bit of magic where any time you alter an array object, the length is changed to the
by serve_yay 11y ago
In JS, arrays are just objects where the indices are keys. There is a small bit of magic where any time you alter an array object, the length is changed to the largest numeric key the object has, plus 1.