Deep equality test function. Null and undefined treated as equal.
a
equals
b
value or object to compare with b
value or object to compare with a
true if a is equal to b.
import { deepEqual } from "apprt-core/equals";if (deepEqual(a, b)){ // do something if true} Copy
import { deepEqual } from "apprt-core/equals";if (deepEqual(a, b)){ // do something if true}
Deep equality test function. Null and undefined treated as equal.
a
is an 'object' and provides anequals
function, then the method will delegate to it.a
is an 'object' without anequals
thena
andb
are equal if all (own) properties are equal.a
andb
are arrays then both will be equal if all items are equal.