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

Function stable

packages/opencode/test/server/httpapi-exercise/assertions.ts:16–18  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

14}
15
16export function stable(value: unknown): string {
17 return JSON.stringify(sort(value))
18}
19
20function sort(value: unknown): unknown {
21 if (Array.isArray(value)) return value.map(sort)

Callers 1

index.tsFile · 0.90

Calls 1

sortFunction · 0.70

Tested by

no test coverage detected