{"ScriptPreparationCode":"var data = []\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n data.push(i);\r\n}","TestCases":[{"Name":"For","Code":"const result = []\r\nfor (let i = 0; i \u003C data.length; i\u002B\u002B) {\r\n if (data[i] % 2 == 0) {\r\n result.push(data[i]*2);\r\n }\r\n}","IsDeferred":false},{"Name":"For Of","Code":"const result = []\r\nfor (const x of data) {\r\n if (x % 2 == 0) {\r\n result.push(x*2);\r\n }\r\n}","IsDeferred":false},{"Name":"Filter\u002BMap","Code":"const result = data.filter((x) =\u003E x % 2 == 0).map((x) =\u003E x*2);","IsDeferred":false},{"Name":"FlatMap","Code":"const result = data.filter((x) =\u003E x % 2 == 0 ? x*2 : []);","IsDeferred":false}]}