MCPcopy Create free account
hub / github.com/CacheControl/json-rules-engine / _getFact

Method _getFact

src/almanac.js:66–68  ·  view source on GitHub ↗

* Retrieve fact by id, raising an exception if it DNE * @param {String} factId * @return {Fact}

(factId)

Source from the content-addressed store, hash-verified

64 * @return {Fact}
65 */
66 _getFact (factId) {
67 return this.factMap.get(factId)
68 }
69
70 /**
71 * Registers fact with the almanac

Callers 2

factValueMethod · 0.95
almanac.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected