Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-chain / src / plugins / autoIncrement.ts
Size: Mime:
/**
 * @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))
}