All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy