Reference · Pipes, rules and solving
bigShapeByIdfunction
The shape with this id, or undefined for four masks that make none.
Import it
import { bigShapeById } from "@johnmorrisdotca/suido";
Definition
function bigShapeById(id: string): BigShape | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | The native big-shape or guide-piece identifier. |
Returns
BigShape | undefined
The shape with that identifier, or undefined when it is not a known shape.
Examples
import { BIG_SHAPES, bigShapeById } from "@johnmorrisdotca/suido";
console.log(bigShapeById(BIG_SHAPES[0].id)?.openings);1What it prints (run when this page was built)