MCPcopy Create free account
hub / github.com/Noumena-Network/code / getFirstBoolean

Function getFirstBoolean

src/commands/agents-platform/agents-platform.tsx:81–92  ·  view source on GitHub ↗
(
  value: unknown,
  paths: PathSegment[][],
)

Source from the content-addressed store, hash-verified

79}
80
81function getFirstBoolean(
82 value: unknown,
83 paths: PathSegment[][],
84): boolean | null {
85 for (const path of paths) {
86 const candidate = getNested(value, path)
87 if (typeof candidate === 'boolean') {
88 return candidate
89 }
90 }
91 return null
92}
93
94function asArray(value: unknown): unknown[] {
95 return Array.isArray(value) ? value : []

Callers 1

summarizeRoutineFunction · 0.85

Calls 1

getNestedFunction · 0.85

Tested by

no test coverage detected