2 lines
104 B
TypeScript
Executable File
2 lines
104 B
TypeScript
Executable File
export const clamp = (value: number, min: number, max: number) =>
|
|
Math.max(Math.min(value, max), min) |