Rest API - Batch and Bulk Operations
Identify the error in this async batch processing code snippet:
async function batchFetch(urls) {
const results = [];
urls.forEach(async url => {
const res = await fetch(url);
results.push(await res.json());
});
return results;
}