{"ScriptPreparationCode":"function fillArrayWithNumbers(n) {\r\n var arr = Array.apply(null, Array(n));\r\n return arr.map(function (x, i) { return i });\r\n }\r\n\r\nvar sourceArray = fillArrayWithNumbers(1000);","TestCases":[{"Name":"Push to new array","Code":"var targetArray = [];\r\nfor (var i = 0; i \u003C sourceArray.length; i = i\u002B3) {\r\n targetArray.push(sourceArray[i]);\r\n};","IsDeferred":false},{"Name":"Splice","Code":"for(var i = 0; i \u003C sourceArray.length; i\u002B\u002B) {\r\n sourceArray.splice(i\u002B1,2);\r\n}","IsDeferred":false},{"Name":"Filter","Code":"var targetArray = sourceArray.filter(function(_, i) { return (i % 3 == 0); })","IsDeferred":false}]}