by rubiquity · 12y ago · 0 comments
Dafuq.
Yes I'm aware how Arrays are just objects in JS but please stop bastardizing the Array data type even further. This is also part of ES6 so I don't blame Mozilla for implementing it.
They are not necessarily dense - there can be gaps, and any kind of relationship to a contiguous block of memory is purely at the discretion of the implementation.
I presume that your complaint is really about calling such a thing an array, because a 'keys' method is certainly not a further bastardization of what was already in the spec.