mirror of
https://github.com/dzeiocom/libs.git
synced 2025-08-03 18:31:59 +00:00
Fixed bug where null were considered as objects
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
@@ -139,6 +139,9 @@ export function objectEqual(x: Record<string, any>, y: Record<string, any>): boo
|
||||
return false
|
||||
}
|
||||
const item2 = y[key]
|
||||
if (item === null && item2 === null) {
|
||||
return true
|
||||
}
|
||||
if (typeof item === 'object' && typeof item2 === 'object') {
|
||||
return objectEqual(item, item2)
|
||||
}
|
||||
|
Reference in New Issue
Block a user