MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / isPlainObject

Function isPlainObject

packages/extension/utils/object.ts:39–41  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

37 : never
38
39function isPlainObject(value: unknown): value is Record<string, unknown> {
40 return value !== null && typeof value === 'object' && !Array.isArray(value)
41}
42
43export function prune<T extends object>(obj: T): Prune<T> extends never ? undefined : Prune<T> {
44 return pruneValue(obj, false) as Prune<T> extends never ? undefined : Prune<T>

Callers 1

pruneValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected