title: Javascript - get array of dates between 2 dates
body: <pre><code>var range = getDates(new Date(), new Date().addDays(7));
  </code></pre>
  
  <p>I'd like "range" to be an array of date objects, one for each day between the two dates.</p>
  
  <p>The trick is that it should handle month and year boundaries as well.</p>