MCPcopy Create free account
hub / github.com/anomalyco/opencode / object

Function object

packages/app/src/utils/diffs.ts:16–18  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

14}
15
16function object(value: unknown): value is Record<string, unknown> {
17 return !!value && typeof value === "object" && !Array.isArray(value)
18}
19
20export function diffs(value: unknown): Diff[] {
21 if (Array.isArray(value) && value.every(diff)) return value

Callers 2

diffsFunction · 0.70
messageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected