Fixlet to isEmptyObject()
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Oct 2022 19:50:46 +0000 (21:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Oct 2022 19:50:46 +0000 (21:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Utils.ts

index 8826f702a142ad997cd97ffc89442c6ba6829d23..e2afc28a6412631c8d4cecb49d52991c228ccc06 100644 (file)
@@ -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