{"ScriptPreparationCode":"arr.fill(Math.random());\r\nout.length = 0;","TestCases":[{"Name":"for of","Code":"for (const item of arr) {\r\n out.push(item);\r\n}","IsDeferred":false},{"Name":"for in","Code":"for (const i in arr) {\r\n out.push(arr[i]);\r\n}","IsDeferred":false},{"Name":"for","Code":"for (var i = 0; i \u003C arr.length; \u002B\u002Bi) {\r\n out.push(arr[i]);\r\n}","IsDeferred":false},{"Name":"while","Code":"var i = 0;\r\nwhile (i \u003C arr.length) {\r\n out.push(arr[i]);\r\n i\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"forEach() with function","Code":"arr.forEach(function(x) {\r\n out.push(x);\r\n});","IsDeferred":false},{"Name":"forEach() with closure","Code":"arr.forEach(x =\u003E out.push(x));","IsDeferred":false},{"Name":"for, reversed","Code":"for (var i = arr.length; i--;) {\r\n out.push(arr[i]);\r\n}","IsDeferred":false},{"Name":"for, cached length","Code":"for (var i = 0, len = arr.length; i \u003C len; \u002B\u002Bi) {\r\n out.push(arr[i]);\r\n}","IsDeferred":false},{"Name":"while, reversed","Code":"var i = arr.length;\r\nwhile (i-- \u003E 0) {\r\n arr[i];\r\n}","IsDeferred":false},{"Name":"while, cached length","Code":"var i = 0;\r\nvar len = arr.length;\r\nwhile (i \u003C len) {\r\n out.push(arr[i]);\r\n i\u002B\u002B;\r\n}","IsDeferred":false}]}