MCPcopy Index your code
hub / github.com/callstack/agent-device / trimText

Function trimText

src/utils/text-surface.ts:71–73  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

69}
70
71export function trimText(value: unknown): string {
72 return typeof value === 'string' ? value.trim() : '';
73}
74
75export function normalizeType(type: string): string {
76 let normalized = type

Callers 2

semanticSurfaceLabelFunction · 0.90
extractReadableTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected