function progressiveArray(start, end) {  start = Number(start);  end = Number(end);  end = end > start ? end : start;  // 生成数组,获取其中的索引,并去掉start之前的数值  return [...Array(end + 1).keys()].slice(start);}progressiveArray(0,10);