Reference · Facts, line drawings and positions
BODY_IDSconstant
Every body's name: the Sun, the planets outward, the dwarf planets, then the moons of each.
Import it
import { BODY_IDS } from "@johnmorrisdotca/wakusei-planets";
Definition
const BODY_IDS: readonly BodyId[] = ["sun", ...PLANET_IDS, ...DWARF_IDS, ...Object.values(MOONS_OF).flat()]
Examples
import { BODY_IDS } from "@johnmorrisdotca/wakusei-planets";
console.log(BODY_IDS.length, BODY_IDS[0]);47 sunWhat it prints (run when this page was built)