Skip to content

Commit

Permalink
Rest Spread is now at Stage 3 (vuejs#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
murribu authored and yyx990803 committed Oct 8, 2016
1 parent 17d4f01 commit f0d439f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {

### Object Spread Operator

Note that `mapState` returns an object. How do we use it in combination with other local computed properties? Normally, we'd have to use a utility to merge multiple objects into one so that we can pass the final object to `computed`. However with the [object spread operator](https://github.com/sebmarkbage/ecmascript-rest-spread) (which is a stage-2 ECMASCript proposal), we can greatly simplify the syntax:
Note that `mapState` returns an object. How do we use it in combination with other local computed properties? Normally, we'd have to use a utility to merge multiple objects into one so that we can pass the final object to `computed`. However with the [object spread operator](https://github.com/sebmarkbage/ecmascript-rest-spread) (which is a stage-3 ECMASCript proposal), we can greatly simplify the syntax:

``` js
computed: {
Expand Down

0 comments on commit f0d439f

Please sign in to comment.