This looks like it takes advantage of partial application, yes?
Jason Boxman
1

Yes it does. Though in this instance I am partially applying all to the this context to the concat function. It has to be bound to this because Array.prototype.concat is a method on an Array that takes 1 argument and returns a new array of the argument appended to itself.

To see the partial application more clearly, we could also write it like this using Ramda:

.then(all => funcs[o].then(R.concat(all))

Cheers!

Show your support

Clapping shows how much you appreciated Joel Thoms’s story.