isInRange()

Determines if a value is within a given range.

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 63 times.

Parameters

{number|string} value
Value to be checked.
{number|string} lowerBounds
Lower bounds against which value will be checked.
{number|string} upperBounds
Upper bounds against which value will be checked.
{boolean=} opt_excludeBounds Optional, Default:false
Indicates whether or not equality to the bounds should prevent the value from being considered within the range.

Returns

{boolean}
true if value is greater than or equal lowerBound and less than or equal upperBound (equality test is ignored if opt_excludeBounds is true-ish), otherwise false.