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.
ais an 'object' and provides anequalsfunction, then the method will delegate to it.ais an 'object' without anequalsthenaandbare equal if all (own) properties are equal.aandbare arrays then both will be equal if all items are equal.