UNPKG

tracey-cli

Version:
10 lines (9 loc) 372 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.and = void 0; /** * Combine a list of conditions so that all have to be passed * @param conditions A list of conditions */ var and = function (conditions) { return function (input) { return conditions.every(function (condition) { return condition(input); }); }; }; exports.and = and;