Speed settings logic improvements
This commit is contained in:
@ -21,11 +21,3 @@ export function closest(array, value) {
|
||||
|
||||
return array.reduce((prev, curr) => (Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev));
|
||||
}
|
||||
|
||||
export function fillRange(start, end, step = 1) {
|
||||
const len = Math.floor((end - start) / step) + 1;
|
||||
|
||||
return Array(len)
|
||||
.fill()
|
||||
.map((_, idx) => start + idx * step);
|
||||
}
|
||||
|
Reference in New Issue
Block a user