Skip to content

Commit 9863149

Browse files
committed
Update README.md
1 parent 5e14fdc commit 9863149

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ Returns an `object` if differences are found. The object will maintain path stru
1919

2020
Example
2121
-------
22-
var x = { name: "omgaz", location: "London" };
23-
var y = { name: "omgaz", location: "Shoreditch, London" };
2422

25-
getDiff(x, y);
23+
var x = { name: "omgaz", location: "London" };
24+
var y = { name: "omgaz", location: "Melbourne" };
2625

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+
}
3135

3236
Tests
3337
-----
@@ -36,5 +40,5 @@ Tests
3640

3741
If you'd like to run tests, check out the whole project. You'll need NodeJS installed. Tests use Karma and PhantomJS.
3842

39-
npm install
40-
npm test
43+
npm install
44+
npm test

0 commit comments

Comments
 (0)