{"ScriptPreparationCode":null,"TestCases":[{"Name":"spread","Code":"const arrayA = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027];\r\nconst arrayB = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027];\r\nconst flattened = [ arrayA, arrayB ].flat();\r\n\r\nconsole.log(flattened);","IsDeferred":false},{"Name":"lodash flatten","Code":"const arrayA = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027];\r\nconst arrayB = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027];\r\nconst flattened = [];\r\nconst sourceObject = [ arrayA, arrayB ];\r\nsourceObject.forEach((array) =\u003E {\r\nflattened.push(array)\r\n});\r\n_.flatten(flattened);\r\nconsole.log(flattened);","IsDeferred":false}]}