{"ScriptPreparationCode":null,"TestCases":[{"Name":"array flat with infinite","Code":"const arrayA = [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027]]]];\r\nconst arrayB = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027]]]]]]];\r\nconst flattened = [ arrayA, arrayB ].flat(Infinity);\r\n\r\nconsole.log(flattened);","IsDeferred":false},{"Name":"lodash flatten","Code":"const arrayA = [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027]]]];\r\nconst arrayB = [\u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027, \u0027hi\u0027, [\u0027hi\u0027, [\u0027hi\u0027]]]]]]];\r\nconst flattened = _.flatten([arrayA, arrayB]);\r\nconsole.log(flattened);","IsDeferred":false}]}