title: Join 3 res.data vue.js
body: <p>I want to join three res.data (carsIn,PositionUsed,position),this res.data I get it by axios.get
  carsIn(id,username,useraddress,userphone,plate)
  PositionUsed(id_pos,id_car,enterdate)
  position(id_pos,name)
  I tried this solution but I need to refresh 3 time to get data in array mergedd
  any solution ?
  I want to get mergedd (username,useraddress,userphone,plate,enterdate,name)</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>export default {
      name: "Courses",
      data() {
          return {
              carsIn: [],
              PositionUsed:[],
              merged:[],
              positions:[],
              mergedd:[],
              message: "",
              INSTRUCTOR: "in28minutes"
          };
      },
      computed: {
          currentUser() {
            return this.$store.state.auth.user;
          }
      },
      mounted() {
          if (!this.currentUser) {
            this.$router.push('/login');
          }
      },
      methods: {
          refreshCourses() {
              clientService.retrieveAllCarsIn(this.INSTRUCTOR)
              .then((res) =&gt; {
                  this.carsIn= res.data;
              });
              clientService.retrieveAllPositionOcp(this.INSTRUCTOR)
              .then((res) =&gt; {
                  this.PositionUsed= res.data;
                  for(let i=0; i&lt;this.carsIn.length; i++) {
                      this.merged.push({
                          ...this.carsIn[i], 
                          ...(this.PositionUsed.find((itmInner) =&gt; 
  itmInner.id_car === this.carsIn[i].plate))}
                      );
                  }
              });
              clientService.retrieveAllPositions(this.INSTRUCTOR)
              .then((res) =&gt; {
                  this.positions = res.data;
                  for(let i=0; i&lt;this.merged.length; i++) {
                      this.mergedd.push({
                          ...this.merged[i], 
                          ...(this.positions.find((itmInner) =&gt; itmInner.id_pos 
  === this.merged[i].id_pos))}
                      );
                  }
              });
  
          }
      },
      created() {
          this.refreshCourses();
  
      }
  }</code></pre>
  </div>
  </div>
  </p>