MCPcopy Create free account
hub / github.com/TanStack/ai / isRecord

Function isRecord

examples/ts-react-native-chat/src/server/app.ts:140–142  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

138}
139
140function isRecord(value: unknown): value is Record<string, unknown> {
141 return !!value && typeof value === 'object'
142}
143
144function readString(value: unknown, key: string): string {
145 if (!isRecord(value)) return ''

Callers 3

readStringFunction · 0.70
readNumberFunction · 0.70
readStringArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected