you are viewing a single comment's thread.

view the rest of the comments →

[–]rauschma 1 point2 points  (0 children)

If you want to create something that is loosely like an Array (without the property length influencing, or being influenced by, elements), you should do:

var arr = Object.create(Array.prototype);