UNPKG

xpath-ts2

Version:

DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.

14 lines 514 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DivOperation = void 0; const binary_operation_1 = require("./binary-operation"); class DivOperation extends binary_operation_1.BinaryOperation { evaluate(c) { return this.lhs.evaluate(c).number.div(this.rhs.evaluate(c).number); } toString() { return '(' + this.lhs.toString() + ' div ' + this.rhs.toString() + ')'; } } exports.DivOperation = DivOperation; //# sourceMappingURL=div-operation.js.map