{"ScriptPreparationCode":"var data = [{\r\n calendar: [{\r\n id: 1,\r\n name: \u0022Calendar 1\u0022,\r\n },\r\n {\r\n id: 2,\r\n name: \u0022Calendar 2\u0022,\r\n }\r\n ]\r\n },\r\n {\r\n calendar: [{\r\n id: 3,\r\n name: \u0022Calendar 3\u0022,\r\n }, ]\r\n },\r\n {\r\n calendar: [{\r\n id: 4,\r\n name: \u0022Calendar 4\u0022,\r\n },\r\n {\r\n id: 5,\r\n name: \u0022Calendar 5\u0022,\r\n }\r\n ]\r\n }\r\n];","TestCases":[{"Name":"Push","Code":"var calendars = [];\r\ndata.forEach(d =\u003E calendars.push(...d.calendar));","IsDeferred":false},{"Name":"Reduce","Code":"var calendars = data.reduce((acc, cur) =\u003E [...acc, ...cur.calendar], []);","IsDeferred":false}]}