MCPcopy
hub / github.com/CacheControl/json-rules-engine / getFact

Method getFact

src/engine.js:228–230  ·  view source on GitHub ↗

* Returns a fact by fact-id * @param {string} factId - fact identifier * @return {Fact} fact instance, or undefined if no such fact exists

(factId)

Source from the content-addressed store, hash-verified

226 * @return {Fact} fact instance, or undefined if no such fact exists
227 */
228 getFact (factId) {
229 return this.facts.get(factId)
230 }
231
232 /**
233 * Runs an array of rules

Callers 2

index.test-d.tsFile · 0.80
prioritizeConditionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected