rollLabel関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A roll's label, checked: a few words with no control characters and nothing notation is written with, or undefined.
インポート
import { rollLabel } from "@johnmorrisdotca/korokoro";
定義
function rollLabel(label: unknown): string | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
label | unknown | The optional short text that describes a roll. |
戻り値
string | undefined
A roll's label, checked: a few words with no control characters and nothing notation is written with, or undefined.
例
import { rollLabel } from "@johnmorrisdotca/korokoro";
console.log(rollLabel(" fire damage "));fire damage出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。