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

Function toNum

apps/sim/blocks/blocks/google_slides.ts:2639–2643  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

2637 }
2638
2639 const toNum = (v: unknown): number | undefined => {
2640 if (v === undefined || v === null || v === '') return undefined
2641 const n = typeof v === 'number' ? v : Number.parseFloat(String(v))
2642 return Number.isFinite(n) ? n : undefined
2643 }
2644
2645 const TEXT_RANGE_OPS = new Set([
2646 'update_text_style',

Callers 1

google_slides.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected