I see a similar question being asked for react js What is the meaning of {...this.props} in Reactjs
However I'm not sure if it does the same thing in vue js. I have no experience with react js but I'm guessing props in react js does the same thing as vue's props. If that is the case I'm not quite sure what {...this.data} is being used for. I believe it is different to {...this.prop}?
Can someone explain what it is actually doing?
export default {
  data() {
    return {
      tabs: [
        {
          name: "home",
          to: "/",
          title: "testing ",
          active: false
        },
        {
          name: "browse",
          to: "/test/all",
          title: "Testing",
          active: false
        },
      ]
    };
  },
methods: {
    setActiveTab(index) {
      for (var i in this.tabs) {
        let tab = { ...this.tabs[i] };
        #Additional code
      }
    }