diff options
-rw-r--r-- | lib/console.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.js b/lib/console.js index 30a9a0e733..406f7007e2 100644 --- a/lib/console.js +++ b/lib/console.js @@ -349,7 +349,7 @@ Console.prototype.table = function(tabularData, properties) { if (properties !== undefined && !ArrayIsArray(properties)) throw new ERR_INVALID_ARG_TYPE('properties', 'Array', properties); - if (tabularData == null || typeof tabularData !== 'object') + if (tabularData === null || typeof tabularData !== 'object') return this.log(tabularData); if (cliTable === undefined) cliTable = require('internal/cli_table'); |