MCPcopy Create free account
hub / github.com/codemix/graph / isPlainObject

Function isPlainObject

packages/graph/src/Comparator.ts:183–190  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

181
182// only returns true for plain objects, not instances of classes
183function isPlainObject(value: unknown): value is object {
184 return (
185 typeof value === "object" &&
186 value !== null &&
187 !Array.isArray(value) &&
188 value.constructor === Object
189 );
190}

Callers 1

compareObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected