MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / safeString

Function safeString

apps/web/src/export-window.tsx:32–34  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

30}
31
32function safeString(value: unknown): string | null {
33 return typeof value === 'string' && value.trim() ? value : null
34}
35
36function safeNumber(value: unknown, fallback: number): number {
37 return typeof value === 'number' && Number.isFinite(value) ? value : fallback

Callers 1

loadExportPrefsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected