リファレンス · ギャラリーや一覧のための豆知識 (意味・半球・見ごろの月・由来・見つけやすさ・アステリズム・流星群)
allConstellationFacts関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The facts about all 88 constellations, alphabetical by Latin name like constellations().
インポート
import { allConstellationFacts } from "@johnmorrisdotca/hoshi-stars/constellation-facts";
定義
function allConstellationFacts(): ConstellationFacts[]
戻り値
ConstellationFacts[]
A fresh array of the shared, frozen facts.
例
import { allConstellationFacts } from "@johnmorrisdotca/hoshi-stars/constellation-facts";
const easy = allConstellationFacts().filter((facts) => facts.difficulty === "easy" && facts.hemisphere === "north");
console.log(easy.map((facts) => facts.constellation.name));[
'Andromeda', 'Auriga',
'Boötes', 'Cassiopeia',
'Cygnus', 'Draco',
'Gemini', 'Pegasus',
'Perseus', 'Ursa Major'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。