Reference · Rockets, variants, parts and the fit check
flightLogOffunction
A rocket's flights, in order.
Import it
import { flightLogOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function flightLogOf(rocket: string): readonly LoggedFlight[]
Parameters
| Name | Type | Description |
|---|---|---|
rocket | string | A rocket's id, such as |
Returns
readonly LoggedFlight[]
That rocket's logged flights, in order. It is empty for a rocket with none.
Examples
import { flightLogOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(flightLogOf("falcon-1").map((flight) => flight.name));[
'Falcon 1, flight 1',
'Falcon 1, flight 2',
'Falcon 1, flight 3',
'Falcon 1, flight 4',
'Falcon 1, flight 5'
]What it prints (run when this page was built)