azurite
Version:
An open source Azure Storage API compatible server
28 lines • 939 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const BinaryOperatorNode_1 = tslib_1.__importDefault(require("./BinaryOperatorNode"));
class GreaterThanEqualNode extends BinaryOperatorNode_1.default {
get name() {
return `gte`;
}
evaluate(context) {
const leftContent = this.left.evaluate(context);
const rightContent = this.right.evaluate(context);
if (leftContent[0].value !== undefined
&& rightContent[0].value !== undefined
&& (leftContent[0].value >= rightContent[0].value)) {
if (leftContent[0].key !== undefined) {
return leftContent;
}
else {
return rightContent;
}
}
else {
return [];
}
}
}
exports.default = GreaterThanEqualNode;
//# sourceMappingURL=GreaterThanEqualNode.js.map
;