Upon receiving an array of day dates from an API, the following structure is observed:
0:{date: "2016-11-17T00:00:00",…}
1:{date: "2016-11-18T00:00:00",…}
2:{date: "2016-11-19T00:00:00",…}
3:{date: "2016-11-21T00:00:00",…}
4:{date: "2016-11-22T00:00:00",…}
5:{date: "2016-11-23T00:00:00",…}
In this particular instance, a date seems to be absent from the array:
{date: "2016-11-20T00:00:00",…}
What would be the most effective method in order to identify a missing day within an array of dates using Javascript or Angular?
This information may prove valuable when configuring a datepicker by setting disabled days accordingly.