4 lines
162 B
JavaScript
4 lines
162 B
JavaScript
|
|
hexo.extend.helper.register("range", function(start, stop, step){
|
|
return Array.from({ length: (stop - start) / step + 1}, (_, i) => start + (i * step));
|
|
});
|