📅  最后修改于: 2022-03-11 15:04:01.603000             🧑  作者: Mango
function rangeOfNumbers(startNum, endNum) {
if(startNum == endNum){
return [startNum];
}
const myArray = rangeOfNumbers(startNum, endNum - 1);
myArray.push(endNum);
return myArray;
};