From: Jérôme Benoit Date: Thu, 27 Oct 2022 19:50:46 +0000 (+0200) Subject: Fixlet to isEmptyObject() X-Git-Tag: v1.1.87~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5e5ba121b515e64808fdbf4573c5d7400e4fe15b;p=e-mobility-charging-stations-simulator.git Fixlet to isEmptyObject() Signed-off-by: Jérôme Benoit --- 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