Javascript – How to solve a sync problme with several fetch?
I am doing several fecth. let var1 = [] let var2 = [] await dateArray?.map((day) => { for (const o of myFirstList) { for (const d of mySecondList) { const resp = fetch(url-with-params) .then((resp) => resp.json()) .then((data) => { const…