tiptap/packages/tiptap-core/src/utils/minMax.ts
2019-12-08 00:16:44 +01:00

3 lines
137 B
TypeScript

export default function minMax(value:number = 0, min:number = 0, max:number = 0): number {
return Math.min(Math.max(value, min), max)
}