Add is.positiveNumber and is.negativeNumber (#184)

This commit is contained in:
Eugene 2023-07-14 23:26:30 +01:00 committed by GitHub
parent 3177d11801
commit 1284da085f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 95 additions and 0 deletions

View file

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