parentBodyOffunction
The parent body of a shower, found by the shower's IAU code, as the IAU Meteor Data Center's origin column names it.
Import it
import { parentBodyOf } from "@johnmorrisdotca/chikyu-earth/meteors";
Definition
function parentBodyOf(code: string): ParentBody | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The IAU's three-letter code ( |
Returns
ParentBody | null
The comet or asteroid, or null when the shower has none named (or the code is not in the table).
Examples
import { parentBodyOf } from "@johnmorrisdotca/chikyu-earth/meteors";
console.log(parentBodyOf("PER")?.designation, parentBodyOf("GEM")?.kind, parentBodyOf("COM"));109P/Swift-Tuttle asteroid nullWhat it prints (run when this page was built)