(obj: Record<string, any> | undefined, dottedPath: string)
| 56 | } |
| 57 | |
| 58 | /** Read a dotted path from a plain object (for rendering current values). PURE. */ |
| 59 | export 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) ──────────────────────────────────────────────────────────── |
no outgoing calls
no test coverage detected