{"ScriptPreparationCode":"var params = [[ 1, 2 ], [ \u0022hello\u0022, true, 7 ]];\r\nvar res_concat = params.reduce((acc, val) =\u003E acc.concat(val), []);\r\nvar res_flat = params.flat();\r\nvar res_spread = params.reduce((acc, val) =\u003E [...acc, ...val], []);\r\n\r\nconsole.log(\u0022Concat Result\u0022);\r\nconsole.log(JSON.stringify(res_concat));\r\nconsole.log();\r\n\r\nconsole.log(\u0022Flat Result\u0022);\r\nconsole.log(JSON.stringify(res_flat));\r\nconsole.log();\r\n\r\nconsole.log(\u0022Spread Result\u0022);\r\nconsole.log(JSON.stringify(res_spread));","TestCases":[{"Name":"reduce \u002B Array.prototype.concat","Code":"var params = [[ 1, 2 ], [ \u0022hello\u0022, true, 7 ]];\r\nvar other = params.reduce((acc, val) =\u003E acc.concat(val), []);","IsDeferred":false},{"Name":"Array.prototype.flat","Code":"var params = [[1, 2, params], [ \u0022hello\u0022, true, 7 ]];\r\nvar other = params.flat();","IsDeferred":false},{"Name":"... spread","Code":"var params = [[ 1, 2 ], [ \u0022hello\u0022, true, 7 ]];\r\nvar other = params.reduce((acc, val) =\u003E [...acc, ...val], []);","IsDeferred":false}]}