The blog post describes how various functions and methods that deal with arrays are affected by holes.
All of the code below assumes that the following variable declaration has been made:
var arr = [ 'a',, 'b' ];
Above, we have created an array that has the element 'a' at index 0, a hole (no element at all) at index 1 and the element 'b' at index 2.
Your new post is loading...