Create a gist now

Instantly share code, notes, and snippets.

return promises.reduce(function (accumulated, value) {
return Q.when(accumulated, function (accumulated) {
return Q.when(value, function (value) {
return accumulated + value;
});
});
})
Values:
[A,B,C,D,E,F,G]
Turns: | | | | | | |
| * | * | | *
* | | *
X | |
* |
X *
X
X
X
X
* is the resolution of a promise
X is a computation of the inner function
@aaroncalderon

I am lost. Do not know what the use case can be applied with this Gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment