deepEqualsWith

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i deepEqualsWith

Weekly Downloads

4

Version

2.0.0

License

MIT

Last publish

Collaborators

  • albertywu