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.ModOperation = void 0; const binary_operation_1 = require("./binary-operation"); class ModOperation extends binary_operation_1.BinaryOperation { evaluate(c) { return this.lhs.evaluate(c).number.mod(this.rhs.evaluate(c).number); } toString() { return '(' + this.lhs.toString() + ' mod ' + this.rhs.toString() + ')'; } } exports.ModOperation = ModOperation; //# sourceMappingURL=mod-operation.js.map