MCPcopy
hub / github.com/mourner/suncalc / record

Function record

test/compare.js:58–58  ·  view source on GitHub ↗
(field, err)

Source from the content-addressed store, hash-verified

56export function measure(SunCalc, fx) {
57 const collectors = {};
58 const record = (field, err) => (collectors[field] ??= []).push(err);
59 const byName = Object.fromEntries(fx.locations.map(l => [l.name, l]));
60
61 // positions: getPosition (Sun), getMoonPosition (Moon)

Callers 1

measureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…