Reference · The functions that read the tables
kanjiOfLevelfunction
The kanji of one JLPT level, not counting the levels below it.
Import it
import { kanjiOfLevel } from "@johnmorrisdotca/jisho";
Definition
function kanjiOfLevel(table: JlptTable, level: JlptLevel): string[]
Parameters
| Name | Type | Description |
|---|---|---|
table | JlptTable |
|
level | JlptLevel | The level. |
Returns
string[]
The level's kanji, in the order of the list; none for a level the table does not hold.
Examples
import { kanjiOfLevel } from "@johnmorrisdotca/jisho";
import { JLPT } from "@johnmorrisdotca/jisho/jlpt";
console.log(kanjiOfLevel(JLPT, "N5").length); // 7979What it prints (run when this page was built)