Reference · The functions that read the tables
kanjiOfGradefunction
The kanji of one grade.
Import it
import { kanjiOfGrade } from "@johnmorrisdotca/jisho";
Definition
function kanjiOfGrade(table: GradeTable, grade: SchoolGrade): string[]
Parameters
| Name | Type | Description |
|---|---|---|
table | GradeTable |
|
grade | SchoolGrade | The grade. |
Returns
string[]
The grade's kanji, one to an item; none for a grade the table does not hold.
Examples
import { kanjiOfGrade } from "@johnmorrisdotca/jisho";
import { GRADES } from "@johnmorrisdotca/jisho/grades";
console.log(kanjiOfGrade(GRADES, 1).length); // 8080What it prints (run when this page was built)