diff --git a/lib/console.js b/lib/console.js index 7fef9e0a7297e8..d72bdf5b27c146 100644 --- a/lib/console.js +++ b/lib/console.js @@ -341,7 +341,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');