Javascript – Wait for a function with an asynchronous call to complete before continuing the loop
I'm trying to synchronize calendars, but the receiving server only wants "bite-sized" data, so I decided to sync PER USER PER MONTH. Thus, I made a double loop: First I loop through all users, and within that loop, I loop…