From 0f841208d2d89d91395536a3227c4b11e1bf2425 Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Fri, 21 Sep 2018 00:09:50 +0800 Subject: lib: change abstract equal to strict equal PR-URL: https://github.com/nodejs/node/pull/22974 Reviewed-By: Anna Henningsen Reviewed-By: John-David Dalton Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- cgit v1.2.3