Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/lib. A collection of common utilities I need. www.npmjs.com/package/@samual/lib
Something went wrong. Try again.
1234/** @example n = clamp(n, 0, 10) */export const clamp = (value: number, low: number, high: number) => Math.max(Math.min(value, high), low)export default clamp