Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Promise.all(carIds.map(id => fetch(`https://example.com/api/reports?carId=${id}`)
- .then(response => response.json())))
- .then(resultArray => {
- // process resppnses here
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement