0

In javascript code involving an array, I encounter the following syntax in some javascript code using Vue.js.

let newpath = [...item.path];

I tried to find what it may do but I can't find any documentation.

Anyone can explain what is may do and in which situation it may be useful?

  • -> [spread syntax `...`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) – Nina Scholz Feb 17 '22 at 09:45

0 Answers0