Permalink
Browse files

Fix example

  • Loading branch information...
1 parent 48f3773 commit e01a5b2015e2b439d3853762b394310c00363ec9 vvo committed Apr 3, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.markdown
View
@@ -9,10 +9,14 @@ example
```js
var util = require('util')
var merge = require('deepmerge')
-var x = { foo : { 'bar' : 3 }, 'array' : [{ does: 'work', too: [1, 2, 3] }] }
-var y = { foo : { 'baz' : 4 }, quux : 5, 'array' : [{ does: 'work', too: [4, 5, 6] }, { really: 'yes' }] }
-var merged = merge(x, y)
-console.log(util.inspect(merged, false, null))
+
+var x = { foo: { bar: 3 },
+ array: [ { does: 'work', too: [ 1, 2, 3 ] } ] }
+var y = { foo: { baz: 4 },
+ quux: 5,
+ array: [ { does: 'work', too: [ 4, 5, 6 ] }, { really: 'yes' } ] }
+
+console.log(util.inspect(merge(x, y), false, null))
```
output:

0 comments on commit e01a5b2

Please sign in to comment.