nameRowsfunction
The rows of the small chunk: the 335 stars with a common name and the 110 Messier objects (445), brightest and best-known first (by weight), as a fresh array. Each equals the row of the same id in /names. For the other bright stars see /names, for the NGC and IC objects /names/ngc-ic.
Import it
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names/named";
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/named";
const rows = nameRows();
console.log(rows.length, rows[0].id, nameRows({ kinds: ["galaxy"] }).length);445 sirius 40What it prints (run when this page was built)