forked from orbit-oss/is
Add is.positiveNumber and is.negativeNumber (#184)
This commit is contained in:
parent
3177d11801
commit
1284da085f
3 changed files with 95 additions and 0 deletions
|
|
@ -410,6 +410,14 @@ function foo() {
|
|||
foo();
|
||||
```
|
||||
|
||||
#### .positiveNumber(value)
|
||||
|
||||
Check if `value` is a number and is more than 0.
|
||||
|
||||
#### .negativeNumber(value)
|
||||
|
||||
Check if `value` is a number and is less than 0.
|
||||
|
||||
##### .inRange(value, range)
|
||||
|
||||
Check if `value` (number) is in the given `range`. The range is an array of two values, lower bound and upper bound, in no specific order.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue