Message from JavaScript discussions

January 2019

— That's his problem

— 

await requests.reduce(async (resultPromise, request) => {
const results = await resultPromise
results[(link: http://request.id) request.id] = await fetch(request.url)
return results
}, {})

— Your variant:

— What is this even

— Already very invalid JS

— Example from *there*

— Functional spaghetti🤤

— What about:
const fetchUrls = compose(
Promise.all,
map(fetch),
prop('url'));

fetchUrls(requests);

— No, just regular spaghetti

— It's not the functional part that is turning this into spaghetti

— Https://github.com/developit/asyncro/blob/master/README.md

— What about this☝️