UNPKG

@civ-clone/core-rule

Version:

This component contains the framework for `Rule`s. These are comprised of `Criterion`s and `Effect`s with optional `Priority`s.

13 lines 402 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Or = void 0; const Criteria_1 = require("../Criteria"); class Or extends Criteria_1.default { validate(...args) { return (!this.criteria().length || this.criteria().some((criterion) => criterion.validate(...args))); } } exports.Or = Or; exports.default = Or; //# sourceMappingURL=Or.js.map