equality2
v1.0.0
Published
All kinds of equality
Downloads
5
Readme
Are these equal?
Methods
var equal = require("equality2")
equal.coercively(x, y)
Returns true if x
is equal to y
using coercive equality (==
operator).
equal.strictly(x, y)
Returns true if x
is equal to y
using strict equality (===
operator).
equal.conceptually(x, y)
Returns true if x
and y
are conceptually equal using is-equal
.
equal.deeply(x, y)
Returns true if x
and y
are deeply equal using deep-equal
.
equal.buffers(x, y)
Returns true if x
and y
are equal buffers using buffer-equal
. If one of them is not a buffer, returns undefined.
equal.is(x, y)
Returns true if a ponyfill for Object.is
returns true when passed with x
and y
using object-is