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

Function asRecord

apps/sim/tools/instantly/utils.ts:58–60  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

56}
57
58export function asRecord(value: unknown): JsonRecord {
59 return isRecordLike(value) ? value : {}
60}
61
62export function getItems(value: unknown): JsonRecord[] {
63 const data = asRecord(value)

Callers 9

delete_leads.tsFile · 0.90
getItemsFunction · 0.70
getNextStartingAfterFunction · 0.70
mapLeadFunction · 0.70
mapCampaignFunction · 0.70
mapEmailFunction · 0.70
mapLeadListFunction · 0.70
extractInstantlyErrorFunction · 0.70

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected