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

Reversing Json Object #123

Open tomiwaAdey opened 6 years ago

tomiwaAdey commented 6 years ago

Hi guys,

lhs object returned below is always reversed(upside down). Is there a simple way to reverse it?

observableDiff(lhs, rhs, function (d) { applyChange(lhs, rhs, d); }); return lhs

flitbit commented 6 years ago

Please provide an illustration in code that I can use in an example/issue-xxx.js... see other examples here.