Here's how I'd make a range function in JS: function range(min, max) {. return [...(new Array(max - min + 1))].map((_, i) => i + min);.
確定! 回上一頁