Checks deep object equality.
Object pairs are deeply equal if they contain:
The target object to be checked for equality
The reference object to be checked for equality
true if x and y are deeply equal; false otherwise
true
x
y
false
This function does not handle circular references and will cause infinite recursion leading to a stack overflow if the inputs contain cycles.
Checks deep object equality.
Object pairs are deeply equal if they contain: