MCPcopy
hub / github.com/simstudioai/sim / isList

Function isList

apps/sim/tools/google_forms/get_responses.ts:145–146  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

143
144 // Distinguish single vs list response shapes
145 const isList = (obj: unknown): obj is GoogleFormsResponseList =>
146 !!obj && typeof obj === 'object' && Array.isArray((obj as GoogleFormsResponseList).responses)
147
148 if (isList(data)) {
149 const listData = data as GoogleFormsResponseList

Callers 1

get_responses.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected