{"ScriptPreparationCode":null,"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":"Manual copy","Code":"var params = [[1, 2, params], [ \u0022hello\u0022, true, 7 ]];\r\nvar length = 0;\r\nfor(let i = 0; i \u003C params.length; i\u002B\u002B) {\r\n length \u002B= params[i].length; \r\n}\r\nvar other = new Array(length);\r\n\r\nfor(let i = 0; i \u003C params.length; i\u002B\u002B) {\r\n for(let j = 0; j \u003C params[i].length; j\u002B\u002B) {\r\n other[params[i].length * i \u002B j] = params[i][j]; \r\n }\r\n}","IsDeferred":false}]}