From 5e5ba121b515e64808fdbf4573c5d7400e4fe15b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 27 Oct 2022 21:50:46 +0200 Subject: [PATCH] Fixlet to isEmptyObject() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 8826f702..e2afc28a 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -197,7 +197,7 @@ export default class Utils { } public static isEmptyObject(obj: object): boolean { - if (Utils.isNullOrUndefined(obj)) { + if (obj?.constructor !== Object) { return false; } // Iterates over the keys of an object, if -- 2.34.1