flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 213 forks source link

nested object with null values are not handled correctly #125

Closed bitliner closed 6 years ago

bitliner commented 6 years ago

If I run a diff of

const obj1 = {
  nested: {
    param1: null,
    param2: null
  }
}

and

const obj2 = {
  nested: {
    param1: null,
    param2: null
  }
}

It says that the path nested, param1 and nested, param2 differ.

I expected instead that it says that there is no diff