Test cases
Test #1 Title *
Async
Code * var index = -1 ;
var l = arr.length ;
while (index++ < l) {
someFn (arr[index]);
}
Test #2 Title *
Async
Code * var l = arr.length ;
while (l--) {
someFn (arr[l]);
}
Title *
Async
Code * while (i = arr.pop ()) {
someFn (i);
}
Title *
Async
Code * var copy = arr.slice (0 );
while (i = copy.shift ()) {
someFn (i);
}
Title *
Async
Code * var a;
while ((a = arr[i++]) !== undefined ) {
someFn (a);
}
Title *
Async
Code * while ((i = arr.shift ()) !== undefined ) {
someFn (i);
}
Title *
Async
Code * while (i = arr.shift ()) {
someFn (i);
}
Title *
Async
Code * arr.forEach (function (v ) {
someFn (v)
})
Title *
Async
Code * for (var i in arr) {
someFn (arr[i]);
}
Title *
Async
Code * var i = arr.length ;
if (i > 0 ) {
do {
someFn (arr[i]);
}
while (--i);
}
Title *
Async
Code * var i = arr.length - 1 ;
do {
someFn (arr[i]);
}
while (i--);
Title *
Async
Code * for (var i = arr.length ; i > 0 ; i--) {
someFn (arr[i]);
}
Title *
Async
Code * for (var i = 0 , len = arr.length ; i < len; i++) {
someFn (arr[i]);
}
Title *
Async
Code * var i = 0 ;
while (i < arr.length ) {
someFn (arr[i]);
i++;
}
Title *
Async
Code * for (var i = 0 ; i < arr.length ; i++) {
someFn (arr[i]);
}