Returns true if value is within the inclusive range [min, max].
true
value
[min, max]
The number to check.
Lower bound (inclusive).
Upper bound (inclusive).
inRange(5, 0, 10) // => trueinRange(0, 0, 10) // => trueinRange(11, 0, 10) // => false Copy
inRange(5, 0, 10) // => trueinRange(0, 0, 10) // => trueinRange(11, 0, 10) // => false
Returns
trueifvalueis within the inclusive range[min, max].