MCPcopy Index your code
hub / github.com/anomalyco/opencode / boolean

Function boolean

packages/console/function/src/log-processor.ts:190–195  ·  view source on GitHub ↗
(data: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

188}
189
190function boolean(data: Record<string, unknown>, key: string) {
191 const value = data[key]
192 if (typeof value === "boolean") return value
193 if (typeof value === "string") return value === "true" ? true : value === "false" ? false : undefined
194 return undefined
195}
196
197function integer(data: Record<string, unknown>, key: string) {
198 const value = number(data, key)

Callers 2

toLakeEventFunction · 0.70
billing.sql.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected