3 ms·
> but the example given has two anonymous function inside the reduce and returns things(???) Are you a javascript programmer? If not, then it's ok if the code
by azangru 7y ago
> but the example given has two anonymous function inside the reduce and returns things(???)
Are you a javascript programmer? If not, then it's ok if the code in an unfamiliar language looks cryptic. But if yes, then the code example (is it the one with the Promise.resolve as an accumulator?) is a very idiomatic way of writing sequential http requests before we had async functions and stuff.