MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / booleanValue

Function booleanValue

projects/runtime-node/src/cli.ts:62–67  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

60}
61
62function booleanValue(value: string | undefined): boolean | undefined {
63 if (value === undefined) return undefined
64 if (value === "1" || value === "true") return true
65 if (value === "0" || value === "false") return false
66 return undefined
67}
68
69function stringArrayValue(value: string | undefined): string[] | undefined {
70 if (!value) return undefined

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected