I am trying to create a loop where every iteration makes a request to Asana's API and the return value gets pushed into an array.
So for example
for(thing of totalThings){
getAProject(some projectID)
.then(function(getAProject's Response){
someArray.push(getAProject's Response
})
.catch();
}
I'd like to use someArray after this for loop finishes but I'm not sure where I should be placing my return statement.