5 lines
162 B
JavaScript
5 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));
|
||
|
});
|