From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/tslint/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node_modules/tslint/lib/utils.js') diff --git a/node_modules/tslint/lib/utils.js b/node_modules/tslint/lib/utils.js index 2bd5c8ca2..df04f51fd 100644 --- a/node_modules/tslint/lib/utils.js +++ b/node_modules/tslint/lib/utils.js @@ -23,7 +23,7 @@ function arrayify(arg) { if (Array.isArray(arg)) { return arg; } - else if (arg != null) { + else if (arg != undefined) { return [arg]; } else { @@ -36,7 +36,7 @@ exports.arrayify = arrayify; * Enforces the invariant that the input is an object. */ function objectify(arg) { - if (typeof arg === "object" && arg != null) { + if (typeof arg === "object" && arg != undefined) { return arg; } else { -- cgit v1.2.3