constellations関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
All 88 constellations, alphabetical by Latin name (Andromeda first, Vulpecula last).
インポート
import { constellations } from "@johnmorrisdotca/hoshi-stars/constellations";
定義
function constellations(): Constellation[]
戻り値
Constellation[]
A fresh array of the shared, frozen constellations.
例
import { constellations } from "@johnmorrisdotca/hoshi-stars/constellations";
console.log(constellations().length, constellations().map((c) => c.japanese).slice(0, 3));88 [ 'アンドロメダ座', 'ポンプ座', 'ふうちょう座' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。