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

Function normalizeSoapArray

apps/sim/tools/workday/soap.ts:109–112  ·  view source on GitHub ↗
(value: T | T[] | undefined)

Source from the content-addressed store, hash-verified

107 * into a consistently typed array.
108 */
109export function normalizeSoapArray<T>(value: T | T[] | undefined): T[] {
110 if (!value) return []
111 return Array.isArray(value) ? value : [value]
112}
113
114/**
115 * Coerces a SOAP scalar to a boolean. The XML parser returns leaf text as strings,

Callers 4

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected