nameRowsfunction
The rows of the index: the 5,080 bright stars and the 110 Messier objects, brightest and best-known first (by weight), as a fresh array of rows. For the NGC and IC objects see /names/ngc-ic.
Import it
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names";
Definition
function nameRows(options?: { kinds?: readonly NameKind[]; }): NameRow[]
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | { kinds?: readonly NameKind[]; } |
|
Returns
NameRow[]
The rows.
Examples
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names";
const rows = nameRows();
console.log(rows.length, rows[0].id, nameRows({ kinds: ["galaxy"] }).length);5190 sirius 40What it prints (run when this page was built)