UNPKG

@fivem-ts/shared

Version:

FiveM Typescript wrapper shared part

17 lines (16 loc) 487 B
/** * Checks if a value is within a specified range. * * @example * ```ts * isInRange(5, 1, 10); // true * isInRange(0, 1, 10); // false * ``` * * @param {number} value - The value to check. * @param {number} min - The minimum value of the range. * @param {number} max - The maximum value of the range. * * @return {boolean} `true` if the value is within the range, `false` otherwise. */ export declare function isInRange(value: number, min: number, max: number): boolean;