wearPreset関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The grade with this id.
インポート
import { wearPreset } from "@johnmorrisdotca/fuda-cards";
定義
function wearPreset(id: string | null | undefined): WearPreset | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | null | undefined | A grade's id, such as |
戻り値
WearPreset | undefined
The grade, or undefined when there is none with that id.
例
import { wearPreset } from "@johnmorrisdotca/fuda-cards";
console.log(wearPreset("mint")?.name, wearPreset("pristine")); // Mint undefinedMint undefined出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。