repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20581e
)
Fixlet to isEmptyObject()
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 27 Oct 2022 19:50:46 +0000
(21:50 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 8826f702a142ad997cd97ffc89442c6ba6829d23..e2afc28a6412631c8d4cecb49d52991c228ccc06 100644
(file)
--- 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