Number.inRange
inRange($min, $max) -> boolean
Description
Return true
if the number is between $min
and $max
(inclusive).
$num = 5 $num.inRange(1, 10) //= true $num = 10 $num.inRange(1, 10) //= true $num = 20 $num.inRange(1, 10) //= false $num = -3 $num.inRange(1, 10) //= false