@prishelets/utils
Version:
A modern utility library for strings, numbers, and general data types — fully typed, tested, and built for Node.js and TypeScript.
10 lines (9 loc) • 297 B
TypeScript
/**
* Clamps a number between a minimum and maximum value.
*
* @param value - The number to clamp.
* @param min - Minimum value.
* @param max - Maximum value.
* @returns A number within the specified range.
*/
export declare function clamp(value: number, min: number, max: number): number;