I want to understand why the ...list - spread syntax - (I believe it is spread because it deals with an iterable) is being added to the list this way. Does this mean list in collected in an array and pushed into the tempLists?
const tempLists = [];
// eslint-disable-next-line no-restricted-syntax
for (const list of response.data.lists) {
tempLists.push({ ...list, items: [] });
}