{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\n\r\nwhile (i \u003C= 1E6) arr[i] = i\u002B\u002B;","TestCases":[{"Name":"flatMap nested","Code":"arr.flatMap(i =\u003E i % 3 ? [i] : [])","IsDeferred":false},{"Name":"flatMap","Code":"arr.flatMap(i =\u003E i % 3 ? i : [])","IsDeferred":false},{"Name":"reduce","Code":"arr.reduce((a, i) =\u003E { \r\n if (i % 3) {\r\n \ta.push(i)\r\n }\r\n return a\r\n}, [])","IsDeferred":false},{"Name":"loop","Code":"const newArr = []\r\nfor (const i of arr) {\r\n\tif (i % 3) {\r\n \tnewArr.push(3)\r\n }\r\n}","IsDeferred":false}]}