MCPcopy Create free account
hub / github.com/arktypeio/arktype / isPlainObject

Function isPlainObject

ark/type/deferred.ts:648–651  ·  view source on GitHub ↗
(v: object)

Source from the content-addressed store, hash-verified

646const sized = (name: string) => `${name.length}:${name}`
647
648const isPlainObject = (v: object) => {
649 const proto = Object.getPrototypeOf(v)
650 return proto === Object.prototype || proto === null
651}
652
653const fnIds = new WeakMap<object, number>()
654let fnCount = 0

Callers 3

valueFactsFunction · 0.85
snapshotPlainMetaFunction · 0.85
deferDefinitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected