Blog
JavaScript Snippet – Function.prototype.chain()
The following is a function which returns the chainable version of a function: Here is an example of how to define a pseudo-class which uses this chaining method: Here is an example which shows that the chaining works as intended: