I am comparing two javascript objects. How can I list all the differences using optimized code?
I tried few plugins deep-diff & lodash as well.Lodash is returning me difference of the same line but not any other added field.
const a = {
"id":1,
"name":xyz
}
const b = {
"id":1,
"name":xyz abc,
"address":pqr
}
I expect the output: {"name":xyz abc","address":pqr}