import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.6/eachDayOfInterval/index.js";
Examples
// Each day between 6 October 2014 and 10 October 2014:
var result = eachDayOfInterval({
start: new Date(2014, 9, 6),
end: new Date(2014, 9, 10)
})
//=> [
// Mon Oct 06 2014 00:00:00,
// Tue Oct 07 2014 00:00:00,
// Wed Oct 08 2014 00:00:00,
// Thu Oct 09 2014 00:00:00,
// Fri Oct 10 2014 00:00:00
// ]
// Each day between 6 October 2014 and 10 October 2014: var result = eachDayOfInterval({ start: new Date(2014, 9, 6), end: new Date(2014, 9, 10) }) //=> [ // Mon Oct 06 2014 00:00:00, // Tue Oct 07 2014 00:00:00, // Wed Oct 08 2014 00:00:00, // Thu Oct 09 2014 00:00:00, // Fri Oct 10 2014 00:00:00 // ]