2.0.0 • Published 8 years ago

deepEqualsWith v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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,
  ...
}