MCPcopy Create free account
hub / github.com/cortexkit/magic-context / isRecord

Function isRecord

packages/dashboard/src/lib/jsonc.ts:3–5  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1import { parse, stringify } from "comment-json";
2
3function isRecord(value: unknown): value is Record<string, unknown> {
4 return typeof value === "object" && value !== null && !Array.isArray(value);
5}
6
7export function jsoncErrorMessage(error: unknown): string {
8 return error instanceof Error ? error.message : String(error);

Callers 3

parseRootFunction · 0.70
formatJsoncFunction · 0.70
patchDreamerTasksJsoncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected