Reference · Cube engine and views
isCubeScalefunction
Whether a value is one of the three scales.
Import it
import { isCubeScale } from "@johnmorrisdotca/kyuubu";
Definition
function isCubeScale(value: unknown): value is CubeScale
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The attribute or candidate value to validate. |
Returns
boolean
Whether a value is one of the three scales.
Examples
import { isCubeScale } from "@johnmorrisdotca/kyuubu";
console.log(isCubeScale("small"));trueWhat it prints (run when this page was built)