Reference · Rolls and exact odds
rollLabelfunction
A roll's label, checked: a few words with no control characters and nothing notation is written with, or undefined.
Import it
import { rollLabel } from "@johnmorrisdotca/korokoro";
Definition
function rollLabel(label: unknown): string | undefined
Parameters
| Name | Type | Description |
|---|---|---|
label | unknown | The optional short text that describes a roll. |
Returns
string | undefined
A roll's label, checked: a few words with no control characters and nothing notation is written with, or undefined.
Examples
import { rollLabel } from "@johnmorrisdotca/korokoro";
console.log(rollLabel(" fire damage "));fire damageWhat it prints (run when this page was built)