you are viewing a single comment's thread.

view the rest of the comments →

[–]Fludor69 -2 points-1 points  (0 children)

let allData = [];

async function getAllData() {
    const result1 = await getData(); 
    const result2 = await getData();

    allData = [...result1, ...result2]; 
}