aotds-docks/src/lib/utils.js

9 lines
177 B
JavaScript
Raw Normal View History

2022-03-26 17:55:12 +00:00
export function range(min, max) {
if(max === undefined) {
max = min;
min = 0;
}
return Array.from({length: 1+max - min}).map( (_d,i) => i+ min);
}