Fetch API & Handling JSON Responses
What pattern does this code demonstrate for handling multiple requests?
const urls = ['api/1', 'api/2', 'api/3'];
Promise.all(urls.map(url =>
fetch(url)
.then(response => response.json())
.catch(error => ({ error }))
))