title: How to fill dates in an array containing range of dates?
body: <p>I have an array of dates containing a count value. e.g. </p>
  
  <pre><code>[
    {
      "date": "2014-11-11T08:00:00.000Z",
      "count": 8
    },
    {
      "date": "2014-11-13T08:00:00.000Z",
      "count": 4
    }
    {
      "date": "2014-11-16T08:00:00.000Z",
      "count": 4
    }
  ]
  </code></pre>
  
  <p>How do I fill in the missing dates with count = 0, to produce the following in javascript: </p>
  
  <pre><code>[
    {
      "date": "2014-11-11T08:00:00.000Z",
      "count": 8
    },
    {
      "date": "2014-11-12T08:00:00.000Z",
      "count": 0
    },
    {
      "date": "2014-11-13T08:00:00.000Z",
      "count": 4
    },
    ...
  ]
  </code></pre>