Reference · Look words up by reading, written form, English meaning, kanji or romaji
withoutMarksfunction
The words with the senses that carry any of some marks left out. A word left with no sense is left out too, and the meaning of a word that keeps some is made again from the senses it keeps.
Import it
import { withoutMarks } from "@johnmorrisdotca/jisho/words";
Definition
function withoutMarks(words: readonly Word[], marks: readonly string[]): Word[]
Parameters
| Name | Type | Description |
|---|---|---|
words | readonly Word[] | The words a lookup returned. |
marks | readonly string[] | The marks of the senses to leave out. |
Returns
Word[]
New words, in the same order; none of the words given is changed.
Examples
import { loadWords, withoutMarks, wordsOf } from "@johnmorrisdotca/jisho/words";
const words = await loadWords("かみ", { mode: "unfiltered" });
console.log(withoutMarks(wordsOf(words, "かみ"), ["arch", "obs"]).length);8What it prints (run when this page was built)