Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

Reference · Cube engine and views

isClothfunction

Whether a text names a cloth.

Import it

import { isCloth } from "@johnmorrisdotca/kyuubu";

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/kyuubu";
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/kyuubu 1.14.1.