MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / isEmptyCardDisplayValue

Function isEmptyCardDisplayValue

src/ui/taskCardPresentation.ts:49–67  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

47}
48
49export 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
69export function renderBasesValue(
70 container: HTMLElement,

Callers 2

hasValidValueFunction · 0.90
createPropertyEventCardFunction · 0.90

Calls 4

isNullBasesValueFunction · 0.85
isNullishDisplayStringFunction · 0.85
isBasesValueFunction · 0.85
getBasesDisplayStringFunction · 0.85

Tested by

no test coverage detected