Reference · Look words up by reading, written form, English meaning, kanji or romaji
allWordsfunction
Every word that has been loaded, once each, the commonest first for the common table. For a search that reads the meanings too.
Import it
import { allWords } from "@johnmorrisdotca/jisho/words";
Definition
function allWords(words: Words): Word[]
Parameters
| Name | Type | Description |
|---|---|---|
words | Words | What |
Returns
Word[]
The words.
Examples
import { allWords, loadCommonWords } from "@johnmorrisdotca/jisho/words";
console.log(allWords(await loadCommonWords()).length); // about 26,00026014What it prints (run when this page was built)