isCuboidDimsfunction
Whether this is a cuboid the package makes: three whole numbers from 1 to 7, and not 1×1×1, which has nothing to turn.
Import it
import { isCuboidDims } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
function isCuboidDims(dims: unknown): dims is CuboidDims
Parameters
| Name | Type | Description |
|---|---|---|
dims | unknown | The cuboid’s x, y and z dimensions, in that order. |
Returns
boolean
Whether this is a cuboid the package makes: three whole numbers from 1 to 7, and not 1×1×1, which has nothing to turn.
Examples
import { isCuboidDims } from "@johnmorrisdotca/kyuubu/cuboid";
console.log(isCuboidDims([2, 3, 3]));trueWhat it prints (run when this page was built)