Reference · What an English word means
readMeaningsfunction
Reads a stored list of meanings into a map from word to line.
Import it
import { readMeanings } from "@johnmorrisdotca/kotoba/meanings-en";
Definition
function readMeanings(packed: PackedMeanings): Map<string, string>
Parameters
| Name | Type | Description |
|---|---|---|
packed | PackedMeanings |
|
Returns
Map<string, string>
Each word's line.
Examples
import { readMeanings } from "@johnmorrisdotca/kotoba/meanings-en";
console.log(readMeanings({ release: "x", rows: "crane\tlifts and moves heavy objects" }).get("crane"));lifts and moves heavy objectsWhat it prints (run when this page was built)