📅  最后修改于: 2022-03-11 15:01:20.211000             🧑  作者: Mango
Array(to - from + 1)
.fill('') // .fill() is not IE compliant
.map((_, i) => from + i));
// (2000, 2003) => [2000,2001,2002,2003]