diffler icon indicating copy to clipboard operation
diffler copied to clipboard

Array order

Open omgaz opened this issue 5 years ago • 0 comments

An investigation into ignoring the order of arrays #29.

I think this can be done, just not in the approach laid out in this PR. I think, for now, some feedback would be good, but in the meantime, if you do not care about array orders, I'd suggest formatting your object prior to sending to diffler to make sure arrays are associative rather than ordered (see README.md example in this PR).

I think my next step would be to look at doing this associative mapping internally, but keeping an array index of values should a difference occur.

Can install this branch with npm i diffler@next


* Side notes

  • Discovered a bug if an array contains mixed types of primitives and non-primitives (opened issue #31)

omgaz avatar Oct 18 '20 02:10 omgaz