Fix call to util.inspect
This commit is contained in:
parent
e97e68cd01
commit
000f66bbdc
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -153,7 +153,7 @@ is.inRange = (x, range) => {
|
||||||
return x >= Math.min.apply(null, range) && x <= Math.max.apply(null, range);
|
return x >= Math.min.apply(null, range) && x <= Math.max.apply(null, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new TypeError(`Invalid range: ${util.inspect}`);
|
throw new TypeError(`Invalid range: ${util.inspect(range)}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = is;
|
module.exports = is;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue