MCPcopy Create free account
hub / github.com/cli/cli / object

Function object

evals/src/suites/events/grading/observations.ts:7–9  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

5import { record } from "../../../core/io.js";
6
7function object(value: unknown): Record<string, unknown> | undefined {
8 return typeof value === "object" && value !== null && !Array.isArray(value) ? record(value) : undefined;
9}
10
11function json(text: string): unknown {
12 try { return JSON.parse(text); } catch { return undefined; }

Callers 4

containsReviewFunction · 0.85
namesPullFunction · 0.85
eventMatchesPullFunction · 0.85
observedAtFunction · 0.85

Calls 1

recordFunction · 0.50

Tested by

no test coverage detected