MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / normalizeStringArray

Function normalizeStringArray

apps/web/features/integrations/external-sheets.ts:410–412  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

408}
409
410function normalizeStringArray(value: unknown): string[] | undefined {
411 return Array.isArray(value) ? value.filter((item): item is string => typeof item === "string") : undefined;
412}
413
414function normalizeRowsPreview(value: unknown): unknown[][] | undefined {
415 return Array.isArray(value) ? value.filter((row): row is unknown[] => Array.isArray(row)) : undefined;

Callers 2

normalizePreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected