Add default 0 as lower bound if range is a number. Update tests
This commit is contained in:
parent
be967d4d01
commit
b30101d07e
3 changed files with 17 additions and 3 deletions
|
|
@ -123,6 +123,8 @@ Check to see if the value is within a given range, for example `is.inRange(3, [0
|
|||
The range supplied can be an array of any size, though this will only check for
|
||||
the minimum and maximum values in it.
|
||||
|
||||
If `range` is a number (e.g., `is.inRange(3, 10)`), it will be treated as a range of 0 to `range`.
|
||||
|
||||
## FAQ
|
||||
|
||||
### Why yet another type checking module?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue