readKindfunction
The kind a source's object type means: Space-Track says PAYLOAD, ROCKET BODY, DEBRIS or TBA, other lists say PAY, R/B, DEB or UNK; any other word, or none, is UNK.
Import it
import { readKind } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
function readKind(value: string | null | undefined): ObjectKind
Parameters
| Name | Type | Description |
|---|---|---|
value | string | null | undefined | The source's object type, in any case. |
Returns
ObjectKind
The kind.
Examples
import { readKind } from "@johnmorrisdotca/chikyu-earth/catalogue";
console.log(readKind("PAYLOAD"), readKind("R/B"), readKind("debris"), readKind("TBA"), readKind(undefined));PAY RB DEB UNK UNKWhat it prints (run when this page was built)