Estoy confundido por qué Hold no devuelve nada -> [] en esta función.
Idealmente, necesito ejecutar esta solicitud varias veces, cada respuesta debe agregarse a la matriz. ¿Por qué mis valores no se agregan a esta lista?
const gather = async (round) => { console.log("RUNNING"); const hold = []; [...Array(round).keys()].forEach(async (x) => { const minLat = -90; const minLon = x; const maxLat = 90; const maxLon = x + 5; const params = `minLat=${minLat}&minLon=${minLon}&maxLat=${maxLat}&maxLon=${maxLon}`; const url = `URLHERE`; const response = await fetch(url); const body = await response.text(); const results = body.split("<raw_text>"); hold.push(results); }); console.log(hold); };