MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / getDeep

Function getDeep

src/cli/dashboard-control.ts:58–62  ·  view source on GitHub ↗
(obj: Record<string, any> | undefined, dottedPath: string)

Source from the content-addressed store, hash-verified

56}
57
58/** Read a dotted path from a plain object (for rendering current values). PURE. */
59export function getDeep(obj: Record<string, any> | undefined, dottedPath: string): unknown {
60 let cur: any = obj;
61 for (const k of dottedPath.split('.')) { if (cur == null) return undefined; cur = cur[k]; }
62 return cur;
63}
64
65// ── appliers (impure) ────────────────────────────────────────────────────────────

Callers 2

gatherDashboardDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected