Reference · Rockets, variants, parts and the fit check
cleanLookfunction
A value from outside as a look's name: the default for anything else.
Import it
import { cleanLook } from "@johnmorrisdotca/uchusen-rockets";
Definition
function cleanLook(value: unknown): LookName
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | Anything. |
Returns
"line" | "thick" | "painted"
The look's name if it is one, and the default (line) for anything else.
Examples
import { cleanLook } from "@johnmorrisdotca/uchusen-rockets";
console.log(cleanLook("painted"), cleanLook("shiny"));painted lineWhat it prints (run when this page was built)