Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #multiple #url #fetch
ADD COMMENT
Topic
Name
5+5 =