json-diff icon indicating copy to clipboard operation
json-diff copied to clipboard

Ability to separate JSON returned by 'diff'

Open SlickNutter opened this issue 3 years ago • 0 comments

Would there be interest in having an exported function which receives an Object created by diff() as an argument and returns an Object with 2 keys, new and old. So that new includes:

  • created values
  • new values of modified elements

and old includes:

  • deleted values
  • old values of modified elements

SlickNutter avatar Oct 26 '22 12:10 SlickNutter