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

Function asNumber

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

Source from the content-addressed store, hash-verified

354}
355
356function asNumber(value: unknown): number | null {
357 return typeof value === 'number' && Number.isFinite(value) ? value : null
358}
359
360function asBoolean(value: unknown): boolean | null {
361 return typeof value === 'boolean' ? value : null

Callers 3

mapLeadFunction · 0.70
mapCampaignFunction · 0.70
mapEmailFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected