Chainable.js 181 B

1234567891011121314
  1. module.exports = class {
  2. constructor(parent) {
  3. this.parent = parent;
  4. }
  5. batch(handler) {
  6. handler(this);
  7. return this;
  8. }
  9. end() {
  10. return this.parent;
  11. }
  12. };