mergeElementSetsfunction
The element sets of several lists as one, one set for each satellite: where two lists have the same NORAD number the set with the newer epoch wins, and a tie goes to the list that came first.
Import it
import { mergeElementSets } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function mergeElementSets(lists: readonly { id: string | null; sets: readonly ElementSet[]; }[]): { set: ElementSet; id: string | null; }[]
Parameters
| Name | Type | Description |
|---|---|---|
lists | readonly { id: string | null; sets: readonly ElementSet[]; }[] | Each list's sets, with the id of the source they came from ( |
Returns
{ set: ElementSet; id: string | null; }[]
The sets, each with the id of the source it came from (an id of null means a set the page set itself, not one from a source).
Examples
import { mergeElementSets } from "@johnmorrisdotca/chikyu-earth/door";
console.log(mergeElementSets([]).length);0What it prints (run when this page was built)