Skip to content

Commit

Permalink
Cleanup markdown sample code (#60)
Browse files Browse the repository at this point in the history
* Use const/let in sample code

* run eslint on markdown code

* run eslint on markdown code
  • Loading branch information
Christopher Baker authored Feb 15, 2018
1 parent c2aed8c commit e1e812f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/prototype.serialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Returns the serialized form of the simple-map, with any values in the map that
have a serialize method also having serialized called.

```js
var map = new SimpleMap();
map.set("deep", new SimpleMap({a: "b"}));
const map = new SimpleMap();
map.set( "deep", new SimpleMap( { a: "b" } ) );

map.serialize() //-> {deep: {a: "b"}}
map.serialize(); //-> {deep: {a: "b"}}
```

@return {Object} A plain JavaScript object that will only contain
Expand Down

0 comments on commit e1e812f

Please sign in to comment.