15 lines
181 B
JavaScript
15 lines
181 B
JavaScript
module.exports = class {
|
|
constructor(parent) {
|
|
this.parent = parent;
|
|
}
|
|
|
|
batch(handler) {
|
|
handler(this);
|
|
return this;
|
|
}
|
|
|
|
end() {
|
|
return this.parent;
|
|
}
|
|
};
|