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 { equal } from "apprt-core/equals";if (equal(a, b)) { // do something if true} Copy
import { equal } from "apprt-core/equals";if (equal(a, b)) { // do something if true}
Equality test function. Null and undefined treated as equal.
ais an 'object' and provides anequalsfunction, then the method will delegate to it.aandbare arrays then both will be equal if all items are equal.