package.dist.util.clamp.d.ts Maven / Gradle / Ivy
/**
* Returns a value clamped between an upper bound 'max' and lower bound 'min'.
* @param {number} val value
* @param {number} min lower bound
* @param {number} max upper bound
* @returns {number}
*/
declare const clamp: (val: number, min: number, max: number) => number;
export default clamp;