Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
First, Chain.run checks to see if there are any links in the chain (line 11).
Line 12 shifts the callback array one to the left, then executes the callback that is returned.
the first parameter is "next". It references Chain.prototype.run.bind(this, end). We could also use this.run.bind(this, end), but I wanted to be more explicit.
The second parameter is end.
When you don't have any more links, execute end()!
the chain.prototype.run function can be reduced to one recursive call [else: end()]. Look at my fork :-)