deepEqualsWith
v2.0.0
Published
Performs a deep equality check on two members, with support for custom equality function for primitive types.
Downloads
2
Maintainers
Readme
deepEqualsWith
Performs a deep equality check on two members, with support for custom equality function for primitive types.
Usage:
var isEqual = deepEqualWith(a, b, primitiveEquals)
where a
, b
are things we're testing equality for, and primitiveEquals is an optional hash from primitiveType => equalityFn with the shape:
primitiveEquals = {
string: (a, b) => boolean,
number: (a, b) => boolean,
...
}