https://github.com/kathan/simple-jsdiff
A simple diff algorithm for finding the difference between two Javascript objects
https://github.com/kathan/simple-jsdiff
Last synced: about 2 months ago
JSON representation
A simple diff algorithm for finding the difference between two Javascript objects
- Host: GitHub
- URL: https://github.com/kathan/simple-jsdiff
- Owner: kathan
- Created: 2016-04-13T13:44:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T21:22:10.000Z (about 10 years ago)
- Last Synced: 2025-01-06T18:42:01.900Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-jsdiff
A simple diff algorithm for finding the difference between two Javascript objects
```javascript
var a = {'my_array':[1,2,3,{'name':'mike'},{'name':'sam'},4]},
b = {'my_array':[0,1,2,{'name':'mike'},{'name':'dave'},3]},
Diff = require('../simple-jsdiff.js'),
diff = Diff(a, b);
console.log(diff);
```