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

Function isRecord

apps/sim/tools/google_forms/utils.ts:7–9  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

5const logger = createLogger('GoogleFormsUtils')
6
7function isRecord(value: unknown): value is Record<string, unknown> {
8 return value !== null && typeof value === 'object'
9}
10
11export function getGoogleFormsErrorMessage(data: unknown, fallback: string): string {
12 if (!isRecord(data)) return fallback

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected