Add is.infinite()

This commit is contained in:
Melvin Philips 2017-10-05 00:18:25 -07:00 committed by Sindre Sorhus
parent 11b98171c8
commit 24c964a7c7
3 changed files with 16 additions and 2 deletions

View file

@ -145,6 +145,10 @@ Check if `value` (number) is in the range of `0` to `upperBound`.
is.inRange(3, 10);
```
##### .infinite(value)
Check if `value` is `Infinity` or `-Infinity`.
## FAQ