Reference · Sentence difficulty
UNKNOWN_KANJI_COSTconstant
What a kanji costs when nothing is known about it: 20, the most any kanji costs.
Import it
import { UNKNOWN_KANJI_COST } from "@johnmorrisdotca/hikidashi/difficulty";
Also exported from: @johnmorrisdotca/hikidashi
Definition
const UNKNOWN_KANJI_COST: 20 = 20
Examples
import { UNKNOWN_KANJI_COST, kanjiCost } from "@johnmorrisdotca/hikidashi/difficulty";
console.log(UNKNOWN_KANJI_COST, kanjiCost(null), kanjiCost({ grade: null, frequencyRank: null }));20 20 20What it prints (run when this page was built)