リファレンス · 名前の一覧の小さな最初のかたまり (固有名のある335個の星と110個のメシエ天体。全体と同じ行で、最初に約20 kBだけ読み込む検索ボックス用)
nameRows関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { nameRows } from "@johnmorrisdotca/hoshi-stars/names/named";
定義
function nameRows(options?: { kinds?: readonly NameKind[]; }): NameRow[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | { kinds?: readonly NameKind[]; } |
|
戻り値
NameRow[]
The rows.
例
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names/named";
const rows = nameRows();
console.log(rows.length, rows[0].id, nameRows({ kinds: ["galaxy"] }).length);445 sirius 40出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。