Advertisement
Guest User

Untitled

a guest
Aug 29th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Promise.all(carIds.map(id => fetch(`https://example.com/api/reports?carId=${id}`)
  2.     .then(response => response.json())))
  3.   .then(resultArray => {
  4.     // process resppnses here
  5.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement