getTutorialfunction
Find a magnetic-block lesson by stable id; returns undefined when no lesson has that id.
Import it
import { getTutorial } from "@johnmorrisdotca/houseki/magnetic-blocks";
Definition
function getTutorial(id: string): MagneticLesson | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A stable content id, or the one-based display number when numbers are accepted. |
Returns
MagneticLesson | undefined
Find a magnetic-block lesson by stable id; returns undefined when no lesson has that id. Returns undefined when the id or display number is absent.
Examples
import { getTutorial, lessonManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(getTutorial(lessonManifest[0].id)?.id);calm-bondsWhat it prints (run when this page was built)