UNPKG

@clipboard-health/rules-engine

Version:

A pure functional rules engine to keep logic-dense code simple, reliable, understandable, and explainable.

13 lines 392 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.appendOutput = appendOutput; /** * Rule output is immutable, do not modify existing items, only append using this function. */ function appendOutput(context, output) { return { input: context.input, output: [...context.output, output], }; } //# sourceMappingURL=appendOutput.js.map