Answers for "js multiple url fetch"

0

js multiple url fetch

Promise.all([1, 2, 3].map(id => 
  fetch(`https://jsonplaceholder.typicode.com/todos/${id}`).then(resp => resp.json())
)).then(console.log);
 Run code snippet
Posted by: Guest on March-19-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language