Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 707 Bytes

isNotEqualDeep.md

File metadata and controls

31 lines (23 loc) · 707 Bytes

isNotEqualDeep (source code)

  • Alias: notEqualsDeep
  • Curried: false
  • Failsafe status: failsafe by default

The isNotEqualDeep function returns true if the given values are not equal, considering deep equality. It checks for deep inequality between objects or arrays.

Arguments:

  • The two values to be checked for equality. It can also include deeply nested objects.

Usage:

const object1 = {
  a: 1,
  b: { c: 3 },
};

const object2 = {
  a: 1,
  b: { c: 2 },
};

isNotEqualsDeep(object1, object2); //returns true
notEqualsDeep(object1, object2); //returns true