JavaScript Date Range

Array(to - from + 1)
          .fill('') // .fill() is not IE compliant
          .map((_, i) => from + i));

// (2000, 2003) => [2000,2001,2002,2003]
Thoughtful Toad