isClean関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Say whether a name or short text passes the children's filter.
インポート
import { isClean } from "@johnmorrisdotca/kotoba/children-filter";
定義
function isClean(text: string, options?: Options): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | Text to check. |
options (省略可) | Options | undefined | Language and maximum length, as for checkText. |
戻り値
boolean
True if the text passes.
例
import { isClean } from "@johnmorrisdotca/kotoba/children-filter";
console.log(isClean("Luna")); // truetrue出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。