1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-07-29 16:29:52 +00:00

fix: handle arrays with empty elements

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
2023-02-22 16:31:52 +01:00
parent 91e44c4033
commit a1304e7349
2 changed files with 5 additions and 2 deletions

View File

@ -200,7 +200,7 @@ export function objectEqual(first: BasicObject, second: BasicObject): boolean {
return false
}
const res = objectLoop(first, (item, key) => {
if (!(key in second)) {
if (!(key in second) && key in first) {
return false
}
const item2 = second[key]