2025-03-24 22:56:10 +01: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