4 lines
111 B
JavaScript
Raw Permalink Normal View History

2025-06-21 23:30:33 +03:00
const progress = (min, max, value) => max - min === 0 ? 1 : (value - min) / (max - min);
export { progress };