From: Jérôme Benoit Date: Thu, 27 Oct 2022 19:43:58 +0000 (+0200) Subject: Remove unneeded type check in isEmptyObject(). X-Git-Tag: v1.1.87~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=684bad51d3298b7bf2cc55463e1f05c1ce45e41f;p=e-mobility-charging-stations-simulator.git Remove unneeded type check in isEmptyObject(). Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index e2afc28a..f6231998 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -197,9 +197,6 @@ export default class Utils { } public static isEmptyObject(obj: object): boolean { - if (obj?.constructor !== Object) { - return false; - } // Iterates over the keys of an object, if // any exist, return false. for (const _ in obj) {