✅ – BIOLOGY SCIENCE – 11-02 Jul 28
this is my code
for some reason the content of
path/to/different.file
is just an empty array
i have tried logging the temp
array after the forEach
loop, it is not empty, but when i try to write the file, it doesnt work properly
any fixes ?3 Replies
forEach
is unaware of async code inside
You should rather use Promise.all
+ array.map()
Something like that
Ohok I'll give it a try
awesome, it works thank you
This question has an answer! Thank you for helping 😄
If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1002169170571563030
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1002169170571563030