{"ScriptPreparationCode":null,"TestCases":[{"Name":"Array Spread","Code":"function createDateArrayInAMonth(year, month) {\r\n return [...new Array(new Date(year, month, 0).getDate())].map((_, i) =\u003E new Date(year, month - 1, i \u002B 1).toLocaleString())\r\n}\r\n\r\ncreateDateArrayInAMonth(2023, 10)","IsDeferred":false},{"Name":"Array Apply","Code":"function createDateArrayInAMonth(year, month) {\r\n return Array.apply(null, new Array(new Date(year, month, 0).getDate())).map((_, i) =\u003E new Date(year, month - 1, i \u002B 1).toLocaleString())\r\n}\r\n\r\ncreateDateArrayInAMonth(2023, 10)","IsDeferred":false}]}