allConstellationFactsfunction
The facts about all 88 constellations, alphabetical by Latin name like constellations().
Import it
import { allConstellationFacts } from "@johnmorrisdotca/hoshi-stars/constellation-facts";
Definition
function allConstellationFacts(): ConstellationFacts[]
Returns
ConstellationFacts[]
A fresh array of the shared, frozen facts.
Examples
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'
]What it prints (run when this page was built)