📅  最后修改于: 2022-03-11 15:04:09.278000             🧑  作者: Mango
function oddNumbers(l, r) {
let arr = [];
while (l <= r) {
arr.push(l);
l += 1;
};
return arr.filter(n => n % 2);
}