Optional
ignoreIgnore the order of the elements in an array when comparing arrays for equality.
Optional
ignoreIgnore extra elements in an array when comparing arrays for equality.
For example when array a
looks like [1, 2, 3]
and array b
looks like [1, 2, 3, 4]
the arrays are considered equal even though array b
has an extra element.
Optional
ignoreIgnore extra properties in object b
when comparing object a
for equality.
For example when object b
looks like { a: 1, b: 2 }
and object a
looks like { a: 1 }
the objects are considered equal even though object b
has an extra property
Optional
ignoreIgnore missing properties in object b
when comparing object a
for equality.
For example when object a
looks like { a: 1, b: 2 }
and object b
looks like { a: 1 }
the objects are considered equal even though object b
is missing the b
property.
Optional
objectFunction to compare 2 objects for equality, defaults to objectEquals
-comparison; the function should return true if the 2 objects are equal otherwise false.
If the function is not specified the objectEquals
-function is used to compare the objects;
Optional
primitiveFunction to compare 2 primitives for equality, defaults to ===
-comparison; the function should return true if the 2 primitives are equal otherwise false.
Describe options for the objectEquals function