skip to Main Content

How to sort the dates from different objects with multiples dates inside of an array of object – Javascript

I have this array of objects that I gather from an API: const schedules = [ { "_id": "6436b48b875967d0bea245b4", "service": "64246dc9a2d61593d103c749", "scheduledDates": [ { "date": "2023-04-17T18:00:00.000Z", "user": "643701f7e5f61e6760f4d1f3" }, { "date": "2023-04-12T18:00:00.000Z", "user": "643701f7e5f61e6760f4d1f3" } ] }, { "_id": "6436b48b875967d0bea245b5",…

VIEW QUESTION
Back To Top
Search