📜  使用 2 个值 javascript 代码示例制作步进器

📅  最后修改于: 2022-03-11 15:02:10.430000             🧑  作者: Mango

代码示例1
const range = (start, stop, step) => Array.from({ length: (stop - start) / step + 1}, (_, i) => start + (i * step));