Skip to content

Commit

Permalink
Update docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thk2b authored Apr 14, 2018
1 parent 3f828ce commit 797e3b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/HashMap/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ const store = createStore(
})
)

store.getState().users === { 1: { id: 1, name: 'jane' }}
store.getState().users // { 1: { id: 1, name: 'jane' }}
store.dispatch(userActions.set(2, { id: 2, name: 'joe' }))
store.getState().users === {
store.getState().users
/* {
1:{id: 1, name: 'jane' }
2:{id: 2, name: 'joe' }
}
} */
```

0 comments on commit 797e3b5

Please sign in to comment.