Reference · Marking, scores and game rules
readSayingsfunction
Reads a stored list of proverbs or four-character compounds into plain rows.
Import it
import { readSayings } from "@johnmorrisdotca/kotoba";
Definition
function readSayings(packed: PackedSayings): Saying[]
Parameters
| Name | Type | Description |
|---|---|---|
packed | PackedSayings |
|
Returns
Saying[]
Every entry, in the order of its reading.
Examples
import { readSayings } from "@johnmorrisdotca/kotoba";
import { JA_PROVERBS } from "@johnmorrisdotca/kotoba/proverbs-ja";
console.log(readSayings(JA_PROVERBS).length);929What it prints (run when this page was built)