Optional
a: unknownObject to which object b
is compared
Optional
b: unknownObject to which object a
is compared
Optional
options: ObjectEqualsOptionsAdditional options to control the comparison
true
if objects a and b are equal otherwise false
.
Compare 2 objects for quality by comparing the values of the properties of the objects instead of only reference-equality. For none-object (primitives such as string, integer, etc) a
primitiveCompare
can be specified; it noprimitiveCompare
is specified equality for primitives defaults a===
-comparison.When comparing objects a
objectCompare
can be specified; if noobjectCompare
is specified theobjectEquals
-function is used to compare the objects.If there is a self-referencing loop in the object graph the function will throw an error.