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:
parent
f8d69911be
commit
0f841208d2
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user