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

Function hasValue

src/core/createCompat.ts:387–392  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

385}
386
387function hasValue(value: unknown): boolean {
388 if (value === null || value === undefined) return false;
389 if (typeof value === "string") return value.trim().length > 0;
390 if (Array.isArray(value)) return value.length > 0;
391 return true;
392}

Callers 3

applyTimestampDefaultsFunction · 0.85
applyFieldDefaultsFunction · 0.85
applyMatchDefaultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected