File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,19 @@ Returns an `object` if differences are found. The object will maintain path stru
19
19
20
20
Example
21
21
-------
22
- var x = { name: "omgaz", location: "London" };
23
- var y = { name: "omgaz", location: "Shoreditch, London" };
24
22
25
- getDiff(x, y);
23
+ var x = { name: "omgaz", location: "London" };
24
+ var y = { name: "omgaz", location: "Melbourne" };
26
25
27
- // Returns
28
- location: Object
29
- from: "London"
30
- to: "Shoreditch, London"
26
+ getDiff(x, y);
27
+
28
+ // Returns object
29
+ {
30
+ location: {
31
+ from: "London",
32
+ to: "Melbourne"
33
+ }
34
+ }
31
35
32
36
Tests
33
37
-----
36
40
37
41
If you'd like to run tests, check out the whole project. You'll need NodeJS installed. Tests use Karma and PhantomJS.
38
42
39
- npm install
40
- npm test
43
+ npm install
44
+ npm test
You can’t perform that action at this time.
0 commit comments