Reference · Rolls and exact odds
meetsfunction
Whether a number meets a comparison.
Import it
import { meets } from "@johnmorrisdotca/korokoro";
Definition
function meets(compare: Compare, value: number): boolean
Parameters
| Name | Type | Description |
|---|---|---|
compare | Compare | The comparison operator and numeric threshold. |
value | number | The candidate face, value or name to check. |
Returns
boolean
Whether a number meets a comparison.
Examples
import { meets } from "@johnmorrisdotca/korokoro";
console.log(meets({ op: ">=", n: 5 }, 6));trueWhat it prints (run when this page was built)