lib: change abstract equal to strict equal

PR-URL: https://github.com/nodejs/node/pull/22974
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
ZYSzys 2018-09-21 00:09:50 +08:00 committed by Daniel Bevenius
parent f8d69911be
commit 0f841208d2

View File

@ -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');