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

Function asRecord

apps/sim/app/api/function/execute/route.ts:755–759  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

753}
754
755function asRecord(value: unknown): Record<string, unknown> {
756 return value && typeof value === 'object' && !Array.isArray(value)
757 ? (value as Record<string, unknown>)
758 : {}
759}
760
761function getPositiveNumber(value: unknown): number | undefined {
762 if (typeof value !== 'number' || !Number.isFinite(value) || value <= 0) {

Callers 2

getBrokerFileArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected