spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / hooks / entries / is-record / is-record.ts
8 lines · 339 BRaw
1/**
2 * Whether the value is a plain object (not null, not an array).
3 *
4 * @param value what the caller passed
5 * @returns whether the value is a plain object, not null and not an array
6 */
7export const isRecord = (value: unknown): value is Record<string, unknown> =>
8 typeof value === 'object' && value !== null && !Array.isArray(value)