(value: JsonRecord, path: string[])
| 442 | } |
| 443 | |
| 444 | function pointer(value: JsonRecord, path: string[]): unknown { |
| 445 | let current: unknown = value; |
| 446 | for (const segment of path) { |
| 447 | if (!current || typeof current !== 'object') { |
| 448 | return undefined; |
| 449 | } |
| 450 | current = (current as JsonRecord)[segment]; |
| 451 | } |
| 452 | return current; |
| 453 | } |
| 454 | |
| 455 | function stringValue(value: unknown): string { |
| 456 | return typeof value === 'string' ? value : ''; |
no outgoing calls
no test coverage detected