isCleanfunction
Say whether a name or short text passes the children's filter.
Import it
import { isClean } from "@johnmorrisdotca/kotoba/children-filter";
Definition
function isClean(text: string, options?: Options): boolean
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to check. |
options (optional) | Options | undefined | Language and maximum length, as for checkText. |
Returns
boolean
True if the text passes.
Examples
import { isClean } from "@johnmorrisdotca/kotoba/children-filter";
console.log(isClean("Luna")); // truetrueWhat it prints (run when this page was built)