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.
a
is an 'object' and provides anequals
function, then the method will delegate to it.a
andb
are arrays then both will be equal if all items are equal.