Checks if number is between start and up to, but not including, end. If
end is not specified, it's set to start with start then set to 0.
If start is greater than end the params are swapped to support
negative ranges.
Parameters
number: number
The number to check.
Optionalstart: number
The start of the range.
Optionalend: number
The end of the range.
Returns boolean
Returns true if number is in the range, else false.
Checks if
number
is betweenstart
and up to, but not including,end
. Ifend
is not specified, it's set tostart
withstart
then set to0
. Ifstart
is greater thanend
the params are swapped to support negative ranges.