flitbit/diff — pull request #3 by SocalNick (2013-07-23 22:41:18+00:00)
Title: Apply diff to a different object

I am using deep-diff to generate a diff object that can be sent to clients when an object changes.

This allows me to generate a 'diff' object:

```
var nestedOne = { levelOne: { levelTwo: 'value' } };
var nestedTwo = { levelOne: { levelTwo: 'another value' } };
var diff = deep.diff(nestedOne, nestedTwo);
var result = {};
deep.applyChange(result, nestedTwo, diff[0]);
console.log(result);
// { levelOne: { levelTwo: 'another value' } }
```