{"ScriptPreparationCode":"var arr = Array(100).fill(Array(20).fill(Math.random()*50))\r\n","TestCases":[{"Name":"reduce","Code":"arr.reduce((acc, val) =\u003E acc.concat(val), [])","IsDeferred":false},{"Name":"flatMap","Code":"arr.flatMap(x =\u003E x)","IsDeferred":false},{"Name":"flat","Code":"arr.flat()","IsDeferred":false},{"Name":"reduce push","Code":"arr.reduce((acc, val) =\u003E {\r\n if (val) val.forEach(a =\u003E acc.push(a));\r\n return acc;\r\n}, [])","IsDeferred":false},{"Name":"forEach push","Code":"let acc = [];\r\n\r\narr.forEach(val =\u003E {\r\n val \u0026\u0026 val.forEach(v =\u003E acc.push(v));\r\n}), acc;","IsDeferred":false},{"Name":"concat spread","Code":"[].concat(...arr)","IsDeferred":false}]}