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

Method setPriority

src/rule.js:50–55  ·  view source on GitHub ↗

* Sets the priority of the rule * @param {integer} priority (>=1) - increasing the priority causes the rule to be run prior to other rules

(priority)

Source from the content-addressed store, hash-verified

48 * @param {integer} priority (>=1) - increasing the priority causes the rule to be run prior to other rules
49 */
50 setPriority (priority) {
51 priority = parseInt(priority, 10)
52 if (priority <= 0) throw new Error('Priority must be greater than zero')
53 this.priority = priority
54 return this
55 }
56
57 /**
58 * Sets the name of the rule

Callers 4

constructorMethod · 0.95
index.test-d.tsFile · 0.80
rule.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected