getLessonfunction
Finds one of the three bilingual rules lessons by stable ID.
Import it
import { getLesson } from "@johnmorrisdotca/houseki/magnetic-blocks";
Definition
function getLesson(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
Finds one of the three bilingual rules lessons by stable ID. Returns undefined when the id or display number is absent.
Examples
import { getLesson, lessonManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(getLesson(lessonManifest[0].id)?.id);calm-bondsWhat it prints (run when this page was built)