MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isPlainObject

Function isPlainObject

packages/core/sdk/src/promise-executor.ts:137–142  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

135// ---------------------------------------------------------------------------
136
137const isPlainObject = (v: unknown): v is Record<string | symbol, unknown> =>
138 v !== null &&
139 typeof v === "object" &&
140 !Array.isArray(v) &&
141 !(v instanceof Date) &&
142 !(v instanceof Promise);
143
144const isPromiseOnElicitation = (value: unknown): value is PromiseOnElicitation =>
145 value === "accept-all" || typeof value === "function";

Callers 3

promisifyDeepFunction · 0.70
getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected