Reference · Options, materials, stacks and wear
wearPresetfunction
The grade with this id.
Import it
import { wearPreset } from "@johnmorrisdotca/fuda-cards";
Definition
function wearPreset(id: string | null | undefined): WearPreset | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | null | undefined | A grade's id, such as |
Returns
WearPreset | undefined
The grade, or undefined when there is none with that id.
Examples
import { wearPreset } from "@johnmorrisdotca/fuda-cards";
console.log(wearPreset("mint")?.name, wearPreset("pristine")); // Mint undefinedMint undefinedWhat it prints (run when this page was built)