(value: unknown)
| 47 | } |
| 48 | |
| 49 | export function isEmptyCardDisplayValue(value: unknown): boolean { |
| 50 | if (isNullBasesValue(value)) { |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | if (Array.isArray(value)) { |
| 55 | return value.every(isEmptyCardDisplayValue); |
| 56 | } |
| 57 | |
| 58 | if (typeof value === "string") { |
| 59 | return value.trim() === "" || isNullishDisplayString(value); |
| 60 | } |
| 61 | |
| 62 | if (isBasesValue(value)) { |
| 63 | return getBasesDisplayString(value).trim() === ""; |
| 64 | } |
| 65 | |
| 66 | return false; |
| 67 | } |
| 68 | |
| 69 | export function renderBasesValue( |
| 70 | container: HTMLElement, |
no test coverage detected