Reference · The Messier objects
DEEP_SKY_TYPESconstant
The kinds of deep-sky object, a small fixed list.
Import it
import { DEEP_SKY_TYPES } from "@johnmorrisdotca/hoshi-stars/deep-sky";
Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic
Definition
const DEEP_SKY_TYPES: readonly ["other", "galaxy", "globular cluster", "open cluster", "nebula", "planetary nebula", "supernova remnant"] = ["other", "galaxy", "globular cluster", "open cluster", "nebula", "planetary nebula", "supernova remnant"] as const
Examples
import { DEEP_SKY_TYPES } from "@johnmorrisdotca/hoshi-stars/deep-sky";
console.log(DEEP_SKY_TYPES.length, DEEP_SKY_TYPES.includes("galaxy"));7 trueWhat it prints (run when this page was built)