2026-05-31 13:54:31 +02:00

5 lines
201 B
JavaScript

export const progress = (from, to, value) => {
const toFromDifference = to - from;
return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
};
//# sourceMappingURL=progress.js.map