Outbound Link Summary:
4 years ago
This fooled me so hard already.
Async loops — and why they fail!
forEach expects a synchronous function – forEach does not wait for promises. Kindly make sure you are aware of the implications while using promises (or async functions) as forEach callback.