* Interprets value as either a primitive, or if a fact, retrieves the fact value
(value)
| 179 | * Interprets value as either a primitive, or if a fact, retrieves the fact value |
| 180 | */ |
| 181 | getValue (value) { |
| 182 | if (isObjectLike(value) && Object.prototype.hasOwnProperty.call(value, 'fact')) { // value = { fact: 'xyz' } |
| 183 | return this.factValue(value.fact, value.params, value.path) |
| 184 | } |
| 185 | return Promise.resolve(value) |
| 186 | } |
| 187 | } |
no test coverage detected