Fix call to util.inspect

This commit is contained in:
Sam Gluck 2017-09-28 14:57:32 +01:00 committed by Giora Guttsait
parent e97e68cd01
commit 000f66bbdc

View file

@ -153,7 +153,7 @@ is.inRange = (x, 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;