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

Function getOptionalNumber

apps/sim/tools/trello/shared.ts:49–55  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

47}
48
49function getOptionalNumber(value: unknown): number | null {
50 if (typeof value === 'number' && Number.isFinite(value)) {
51 return value
52 }
53
54 return null
55}
56
57export function getIdArray(value: unknown): string[] {
58 if (!Array.isArray(value)) {

Callers 1

mapActionCardTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected