Compares two values to check if they are the same. If x is an object with an eq method, it returns x.eq(y). Otherwise it returns the result of x === y.
x
eq
x.eq(y)
x === y
true if x and y are equal or false otherwise.
true
y
false
Generated using TypeDoc
Compares two values to check if they are the same. If
x
is an object with aneq
method, it returnsx.eq(y)
. Otherwise it returns the result ofx === y
.Returns
true
ifx
andy
are equal orfalse
otherwise.