3 ms·
I don't know if you looked at the example but the example given has two anonymous function inside the reduce and returns things(???), it's unreadable to me and
by Barrin92 7y ago
I don't know if you looked at the example but the example given has two anonymous function inside the reduce and returns things(???), it's unreadable to me and I'm very comfortable reading functional code, but I don't know what the hell the example is supposed to be
- 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.