MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / isPlainObject

Function isPlainObject

packages/shared/src/editmode.ts:236–238  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

234export type TweakSchema = Record<string, TokenSchemaEntry>;
235
236function isPlainObject(value: unknown): value is Record<string, unknown> {
237 return value !== null && typeof value === 'object' && !Array.isArray(value);
238}
239
240function hasOwn(value: Record<string, unknown>, key: string): boolean {
241 return Object.prototype.hasOwnProperty.call(value, key);

Callers 2

validateEntryFunction · 0.85
parseTweakSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected