DEV Community


Discussion on: Watch for Vuex State changes!

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:
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.