Reference · Pipes, rules and solving
guidePieceByIdfunction
The entry with this id, or undefined.
Import it
import { guidePieceById } from "@johnmorrisdotca/suido";
Definition
function guidePieceById(id: string): GuidePiece | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | The native big-shape or guide-piece identifier. |
Returns
GuidePiece | undefined
The guide piece with that identifier, or undefined when none exists.
Examples
import { SUIDO_PIECE_GUIDE, guidePieceById } from "@johnmorrisdotca/suido";
console.log(guidePieceById(SUIDO_PIECE_GUIDE[0].id)?.name);GroundWhat it prints (run when this page was built)