showsOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The first choices of show, then one per slot.
インポート
import { showsOf } from "@johnmorrisdotca/uchusen-rockets";
定義
function showsOf(slots: readonly string[]): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
slots | readonly string[] | A variant's slots, from the bottom. |
戻り値
string[]
What can be shown: together and apart first when there is more than one slot, then one for each slot.
例
import { showsOf, variantOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(showsOf(variantOf("falcon-9", "block-5")?.slots ?? []));[ 'together', 'apart', 'first-stage', 'second-stage', 'fairing' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。