Great thank you.
You can add rubico rubico
const { pipe, map } = rubico const toTodosUrl = id => `https://jsonplaceholder.typicode.com/todos/${id}` const logTodoByID = pipe([ // fetch a Todo and log it toTodosUrl, fetch, response => response.json(), console.log, ]) const todoIDs = [1, 2, 3, 4, 5] map(logTodoByID)(todoIDs) // fetch Todos per id of TodoIDs and log them // { userId: 1, id: 4, title: 'et porro tempora', completed: true } // { userId: 1, id: 1, title: 'delectus aut autem', completed: false } // { userId: 1, id: 3, title: 'fugiat veniam minus', completed: false } // { userId: 1, id: 2, title: 'quis ut nam facilis...', completed: false } // { userId: 1, id: 5, title: 'laboriosam mollitia...', completed: false } // same as above but with limited concurrency // map.pool(2, logTodoByID)(todoIDs)
Regards
yeah sure. thanks for your suggestion.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great thank you.
You can add rubico rubico
Regards
yeah sure. thanks for your suggestion.