mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
4 lines
117 B
TypeScript
4 lines
117 B
TypeScript
export default function minMax(value = 0, min = 0, max = 0): number {
|
|
return Math.min(Math.max(value, min), max)
|
|
}
|