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:
@ -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]
|
||||
|
Reference in New Issue
Block a user