andreyvit / json-diff

Structural diff for JSON files
MIT License
1.13k stars 134 forks source link

Ability to separate JSON returned by 'diff' #97

Open SlickNutter opened 1 year ago

SlickNutter commented 1 year ago

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:

and old includes: