Reference · Rockets, variants, parts and the fit check
partEntryfunction
Finds a part by its id.
Import it
import { partEntry } from "@johnmorrisdotca/uchusen-rockets";
Definition
function partEntry(id: string): PartEntry | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A part's id. |
Returns
PartEntry | undefined
The part's entry, or undefined for an id that is not a part.
Examples
import { partEntry } from "@johnmorrisdotca/uchusen-rockets";
console.log(partEntry("raptor-vacuum")?.record.height, partEntry("nonsense"));4.4 undefinedWhat it prints (run when this page was built)