diff options
Diffstat (limited to 'node_modules/tslint/lib/utils.js')
-rw-r--r-- | node_modules/tslint/lib/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |