MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / firstOf

Function firstOf

telemetry-dashboard/src/api.ts:61–61  ·  view source on GitHub ↗
(result: D1Result | undefined)

Source from the content-addressed store, hash-verified

59 */
60const rowsOf = <T>(result: D1Result | undefined): T[] => (result?.results ?? []) as unknown as T[];
61const firstOf = <T>(result: D1Result | undefined): T | undefined => rowsOf<T>(result)[0];
62
63// ---------------------------------------------------------------------------
64// Days

Callers 3

summaryFunction · 0.85
activationFunction · 0.85
retentionFunction · 0.85

Calls 1

rowsOfFunction · 0.85

Tested by

no test coverage detected