{"ScriptPreparationCode":"var params = [[1, 2], [\u0022hello\u0022, true, 7], {}, [null, undefined, {}], 5, [1, 2, 3, 4, 5], [false, true, {}, {}, {}]];","TestCases":[{"Name":"Array.flat","Code":"params.flat();","IsDeferred":false},{"Name":"reduce \u002B concat","Code":"params.reduce((acc, val) =\u003E acc.concat(val), []);","IsDeferred":false},{"Name":"reduce \u002B destructure","Code":"params.reduce((acc, curr) =\u003E\r\n Array.isArray(curr)\r\n \t? [...acc, ...curr]\r\n \t: [...acc, curr]\r\n, []);","IsDeferred":false},{"Name":"reduce \u002B push","Code":"params.reduce((acc, curr) =\u003E {\r\n Array.isArray(curr)\r\n ? acc.push(...curr)\r\n : acc.push(curr);\r\n\r\n return acc;\r\n}, []);","IsDeferred":false},{"Name":"lodash.flatten","Code":"_.flatten(params)","IsDeferred":false},{"Name":"destructuring","Code":"[\r\n ...params[0],\r\n ...params[1],\r\n params[2],\r\n ...params[3],\r\n params[4],\r\n ...params[5],\r\n ...params[6]\r\n]","IsDeferred":false}]}