Can a .then promise be added to a for Loop in Javascript?
I am working on a Firebase cloud function to update a field value for every element of the array I provide. Below is my loop. I would like for it to add a document to another collection as soon as…