DEV Community

loading...

Discussion on: Watch for Vuex State changes!

Collapse
yassineche profile image
Yassine Cheddadi

Hey Neves,

Yes, its work fine now.

I'm just wondering about these three dot (...) !! What they do?

Thread Thread
viniciuskneves profile image
Vinicius Kiatkoski Neves Author

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)

The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.