Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Browser table

isClothfunction

Whether a text names a cloth.

Import it

import { isCloth } from "@johnmorrisdotca/kumimoji/ui";

Definition

function isCloth(text: unknown): text is Cloth

Parameters

NameTypeDescription
textunknown

Text to parse, validate or format.

Returns

boolean

Whether a text names a cloth.

Examples

import { isCloth } from "@johnmorrisdotca/kumimoji/ui";
console.log(isCloth("green"), isCloth("unknown"));
true false

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.