ECMAScript quiz: which method from Array.prototype can cause getter invocations on Array.prototype when used on a normal array?
but only if the property doesn't exist on the array already; so e.g. [1].pop() doesn't invoke getters on Array.prototype
-
-
array instances can be sparse so any Get() potentially goes to the prototype
-
oooh, good point. I always thought they had explicit undefined values... thanks for that :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.