Find missing day from array of dates javascript
<p>I am getting an array of day dates from an API:</p>

<pre><code>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",…}
</code></pre>

<p>In this example the array is missing this date:</p>

<pre><code>{date: "2016-11-20T00:00:00",…}
</code></pre>

<p>What is the best way to find a missing day from an array of dates in Javascript or Angular? </p>

<p>So that I later would be able to pass it to a datepicker as a disabled day.</p>