@stencila/jesta
Version:
Stencila plugin for executable documents using JavaScript
15 lines (14 loc) • 376 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pipe = void 0;
async function pipe(node, calls) {
for (const method of calls) {
const result = await this.dispatch(method, { node });
if (result === undefined)
return node;
else
node = result;
}
return node;
}
exports.pipe = pipe;