The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Cheddadi,
If I understood you correctly you want to have this
mapState
+ another computed property, right?If so, you can do it like that:
You can read more about it here: vuex.vuejs.org/guide/state.html#ob...
Hope it helps! Have a nice day!
Hey Neves,
Yes, its work fine now.
I'm just wondering about these three dot (...) !! What they do?
Nice to hear that!
It is called
Destructuring assignment
. You can read more about it here: developer.mozilla.org/en-US/docs/W...In short (from MDN)