MCPcopy Index your code
hub / github.com/simstudioai/sim / parseStringArray

Function parseStringArray

apps/sim/lib/workspace-events/subscriptions.ts:52–63  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

50}
51
52function parseStringArray(value: unknown): string[] {
53 if (Array.isArray(value)) {
54 return value.filter((entry): entry is string => typeof entry === 'string' && entry.length > 0)
55 }
56 if (typeof value === 'string' && value.length > 0) {
57 return value
58 .split(',')
59 .map((entry) => entry.trim())
60 .filter(Boolean)
61 }
62 return []
63}
64
65/**
66 * Per-field bounds ported from the legacy notifications contract. Rule SQL

Callers 1

parseSubscriptionConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected