Add default 0 as lower bound if range is a number. Update tests

This commit is contained in:
glhrmv 2017-09-25 15:07:22 +01:00
parent be967d4d01
commit b30101d07e
3 changed files with 17 additions and 3 deletions

View file

@ -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?