{"ScriptPreparationCode":"const applications = [{\r\n createdDate: 1\r\n}, {\r\n createdDate: 3\r\n}, {\r\n createdDate: 2\r\n}];","TestCases":[{"Name":"with reduce","Code":"const applications = [{\r\n createdDate: 1\r\n}, {\r\n createdDate: 3\r\n}, {\r\n createdDate: 2\r\n}];\r\nreturn applications.reduce((prev, curr) =\u003E (prev.createdDate \u003E curr.createdDate ? prev : curr));","IsDeferred":false},{"Name":"with sort","Code":"const applications = [{\r\n createdDate: 1\r\n}, {\r\n createdDate: 3\r\n}, {\r\n createdDate: 2\r\n}];\r\nreturn applications.sort((prev, curr) =\u003E (prev.createdDate \u003E curr.createdDate))[0];","IsDeferred":false}]}