(record: JsonRecord, key: string)
| 42 | } |
| 43 | |
| 44 | function records(value: unknown): JsonRecord[] { |
| 45 | return Array.isArray(value) ? value.filter(isRecord) : []; |
| 46 | } |
| 47 | |
| 48 | function stringValue(record: JsonRecord, key: string): string | undefined { |
| 49 | return typeof record[key] === 'string' ? record[key] : undefined; |
no outgoing calls
no test coverage detected