Reference · Rockets, variants, parts and the fit check
showsOffunction
The first choices of show, then one per slot.
Import it
import { showsOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function showsOf(slots: readonly string[]): string[]
Parameters
| Name | Type | Description |
|---|---|---|
slots | readonly string[] | A variant's slots, from the bottom. |
Returns
string[]
What can be shown: together and apart first when there is more than one slot, then one for each slot.
Examples
import { showsOf, variantOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(showsOf(variantOf("falcon-9", "block-5")?.slots ?? []));[ 'together', 'apart', 'first-stage', 'second-stage', 'fairing' ]What it prints (run when this page was built)