{"ScriptPreparationCode":" var arr = [];\r\n for (var i = 0; i \u003C 1000000; i\u002B\u002B) {\r\n arr[i] = {Id:i};\r\n }\r\n\r\n var x = [];","TestCases":[{"Name":"foreach if","Code":"arr.forEach(item =\u003E {\r\n if (!item%2)\r\n x.push(item.Id);\r\n})","IsDeferred":false},{"Name":"filter foreach","Code":"x = arr.filter(item=\u003E!item%2).forEach(item =\u003E {\r\n x.push(item.Id);\r\n})","IsDeferred":false},{"Name":"filter map","Code":"x = arr.filter(item=\u003E!item%2).map(item =\u003E item.Id)","IsDeferred":false},{"Name":"while","Code":"let len = arr.length;\r\nwhile (len--) {\r\n let item = arr[len].Id;\r\n if (!item%2)\r\n x.push(item);\r\n}","IsDeferred":false}]}