So long, for (var i = 0, p; p = a[i]; i++) {...}. Also related are these tests of Array.prototype.splice() performance.
for (var i = 0, p; p = a[i]; i++) {...}
Array.prototype.splice()