1 2 3 4 5 6 7 8
var count = 0; var a = [0, 1]; for (var i in a) { assertEq(++count <= 1, true); a.shift(); }