@dice-roller/rpg-dice-roller / modifiers / matchesComparePoint
Function: matchesComparePoint() ​
matchesComparePoint(
comparePoint,value):boolean
Defined in: src/modifiers/compare-point.ts:11
Whether the value matches the compare point, e.g. matchesComparePoint({ operator: ">=", value: 8 }, 9).
!= and <> both mean "not equal".
Parameters ​
comparePoint ​
value ​
number
Returns ​
boolean
Throws ​
the operator is unknown (e.g. from untyped or imported data)