-1
entryProject.forEach(async (project) => {
  this.projects.push(await this.parseProject(project));
})

after forEach, this.projects doesn't have the result of parseProject function and stills empty. This means that callback functions in forEach has been called sequentially without waiting for the preceed one.

How to wait to be filled for the this.projects so that I could use this.projects after forEach.

0 Answers0