a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / isInRange
isInRange(
value
,min
,max
):boolean
Checks if a value is within a specified range.
• value: number
The value to check.
• min: number
The minimum value of the range.
• max: number
The maximum value of the range.
boolean
true
if the value is within the range, false
otherwise.
isInRange(5, 1, 10); // true
isInRange(0, 1, 10); // false