findNgcIcfunction
The NGC or IC row a name or number names exactly (NGC 7000, North America Nebula, ic 434), or undefined.
Import it
import { findNgcIc } from "@johnmorrisdotca/hoshi-stars/names/ngc-ic";
Definition
function findNgcIc(text: string): NameRow | undefined
Parameters
| Name | Type | Description |
|---|---|---|
text | string | What was typed. |
Returns
NameRow | undefined
The row, or undefined.
Examples
import { findNgcIc } from "@johnmorrisdotca/hoshi-stars/names/ngc-ic";
console.log(findNgcIc("North America Nebula")?.id);ngc7000What it prints (run when this page was built)