starByHrfunction
A star by its Bright Star Catalogue number.
Import it
import { starByHr } from "@johnmorrisdotca/wakusei-planets/stars";
Definition
function starByHr(hr: number): Star | undefined
Parameters
| Name | Type | Description |
|---|---|---|
hr | number | The HR number (Sirius is 2491). |
Returns
Star | undefined
The star, or undefined if that number is not in this table (the table holds the stars to magnitude 6.0 only).
Examples
import { starByHr } from "@johnmorrisdotca/wakusei-planets/stars";
console.log(starByHr(2491)?.name);SiriusWhat it prints (run when this page was built)