{"ScriptPreparationCode":"var data = [\r\n 1, 2, 3, 4,\r\n [1, 2, 3, 4],\r\n 5, 6, 7, 8,\r\n [1, 2, 3, 4]\r\n];","TestCases":[{"Name":"Spread Push","Code":"(function fn(items){\r\n var result = [];\r\n items.forEach(item =\u003E {\r\n if(item.pop) {\r\n result.push(...fn(item));\r\n } else {\r\n result.push(item);\r\n }\r\n });\r\n return result;\r\n})(data);","IsDeferred":false},{"Name":"Concat Reassign","Code":"(function fn(items){\r\n var result = [];\r\n items.forEach(item =\u003E {\r\n if(item.pop) {\r\n result = result.concat(fn(item));\r\n } else {\r\n result.push(item);\r\n }\r\n });\r\n return result;\r\n})(data);","IsDeferred":false}]}