MCPcopy Create free account
hub / github.com/vercel/vercel / isObject

Function isObject

packages/error-utils/src/index.ts:12–13  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

10 * @param obj - A possible object
11 */
12export const isObject = (obj: unknown): obj is Record<string, unknown> =>
13 typeof obj === 'object' && obj !== null;
14
15/**
16 * A type guard for `try...catch` errors.

Callers 3

index.test.tsFile · 0.90
isErrorLikeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected