Reference · The functions that read the tables
readKanjifunction
Reads the stored table into plain rows.
Import it
import { readKanji } from "@johnmorrisdotca/jisho";
Definition
function readKanji(packed: PackedKanji): Kanji[]
Parameters
| Name | Type | Description |
|---|---|---|
packed | PackedKanji |
|
Returns
Kanji[]
Every kanji, in the order of KANJIDIC2.
Examples
import { readKanji } from "@johnmorrisdotca/jisho";
import { KANJI } from "@johnmorrisdotca/jisho/kanji";
console.log(readKanji(KANJI).length);2999What it prints (run when this page was built)