UNPKG

@absmartly/javascript-sdk

Version:

A/B Smartly Javascript SDK

20 lines (19 loc) 423 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AndCombinator = void 0; class AndCombinator { evaluate(evaluator, args) { if (Array.isArray(args)) { for (const expr of args) { if (!evaluator.booleanConvert(evaluator.evaluate(expr))) { return false; } } return true; } return null; } } exports.AndCombinator = AndCombinator;