UNPKG

chain-able

Version:

interfaces that describe their intentions.

10 lines (9 loc) 245 B
/** * @plugin * @param {Primitive} name method name * @param {Object} parent Parent * @return {MethodChain} @chainable */ module.exports = function(name, parent) { return this.initial(0).onCall(() => parent.tap(name, num => num + 1)) }