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

Function coerceBoolean

apps/sim/blocks/blocks/sharepoint.ts:454–458  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

452 itemId === undefined || itemId === null ? undefined : String(itemId).trim() || undefined
453
454 const coerceBoolean = (value: any) => {
455 if (typeof value === 'boolean') return value
456 if (typeof value === 'string') return value.toLowerCase() === 'true'
457 return undefined
458 }
459
460 if (others.operation === 'update_list' || others.operation === 'add_list_items') {
461 try {

Callers 1

sharepoint.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected