{"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 = [].concat(...[ arrayA, arrayB ])\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}]}