deep-object-diff icon indicating copy to clipboard operation
deep-object-diff copied to clipboard

Keep arrays as arrays #23

Open Cirrusware opened this issue 3 years ago • 0 comments

Motivation and Context

In aggreement with the issue #23. We would like to keep modified arrays with the complete values instead of the difference object.

How Has This Been Tested?

Adding two test of the diff test suite. Including basic object which contains an array and with a nested object.

const a = {
  a : [1],
},


const b = {
  a : 1, 
  foo: {
    bar: [1]
  },
}

Cirrusware avatar Jan 07 '22 14:01 Cirrusware