Reference · Rockets, variants, parts and the fit check
canBesidefunction
Whether Starship can stand beside this rocket: every rocket but Starship itself.
Import it
import { canBeside } from "@johnmorrisdotca/uchusen-rockets";
Definition
function canBeside(rocket: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
rocket | string | A rocket's id. |
Returns
boolean
False for Starship, true for any other.
Examples
import { canBeside } from "@johnmorrisdotca/uchusen-rockets";
console.log(canBeside("saturn-v"), canBeside("starship"));true falseWhat it prints (run when this page was built)