3 lines
No EOL
187 B
TypeScript
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) |