Add is.infinite()
This commit is contained in:
parent
11b98171c8
commit
24c964a7c7
3 changed files with 16 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -161,4 +161,6 @@ is.inRange = (x, range) => {
|
|||
throw new TypeError(`Invalid range: ${util.inspect(range)}`);
|
||||
};
|
||||
|
||||
is.infinite = x => x === Infinity || x === -Infinity;
|
||||
|
||||
module.exports = is;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue