📜  javascript 日期范围 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:20.211000             🧑  作者: Mango

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

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