propapier/app/utils/number.ts
webfussel 7af148058e add: new design (wip)
New design as WIP, swipe controls
2025-05-10 11:07:06 +02:00

3 lines
No EOL
187 B
TypeScript

export const replaceComma = (value: string | number) => `${value}`.replace(',', '.')
export const clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max)