@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
10 lines • 399 B
TypeScript
/**
* Clamps a number between min and max.
* @param {number} value - The number to clamp.
* @param {number} min - The minimum value.
* @param {number} max - The maximum value.
* @returns {number} The clamped value.
* @throws {TypeError|RangeError} If arguments are invalid.
*/
export default function clamp(value: number, min: number, max: number): number;
//# sourceMappingURL=clamp.d.ts.map