Reference · Rockets, variants, parts and the fit check
canScalefunction
Whether a craft takes the size slider: the three Kaminari concept hulls.
Import it
import { canScale } from "@johnmorrisdotca/uchusen-rockets";
Definition
function canScale(rocket: string, variant?: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
rocket | string | A rocket's id. |
variant (optional) | string | undefined | A variant's id. |
Returns
boolean
True for a Kaminari concept.
Examples
import { canScale } from "@johnmorrisdotca/uchusen-rockets";
console.log(canScale("fleet-kaminari"), canScale("saturn-v"));true falseWhat it prints (run when this page was built)