MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isRecord

Function isRecord

packages/react/src/components/chart.tsx:321–322  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

319
320// Helper to extract item config from a payload.
321const isRecord = (value: unknown): value is Record<string, unknown> =>
322 typeof value === "object" && value !== null && !Array.isArray(value);
323
324function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {
325 if (!isRecord(payload)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected