From 9fa45a31ec1a7be197c850323bf29527325cc925 Mon Sep 17 00:00:00 2001 From: Sam Gluck Date: Thu, 28 Sep 2017 14:57:32 +0100 Subject: [PATCH] Fix call to util.inspect --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5734148..befda91 100644 --- a/index.js +++ b/index.js @@ -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;