MCPcopy
hub / github.com/alibaba/lowcode-engine / isPlainObject

Function isPlainObject

packages/utils/src/is-plain-object.ts:3–9  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

1import { isObject } from './is-object';
2
3export function isPlainObject(value: any): value is any {
4 if (!isObject(value)) {
5 return false;
6 }
7 const proto = Object.getPrototypeOf(value);
8 return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null;
9}

Callers 15

cloneDeepFunction · 0.90
compatibleLegaoSchemaFunction · 0.90
getNodeSchemaByIdFunction · 0.90
isTitleConfigFunction · 0.90
initFunction · 0.50
filterValidOptionsFunction · 0.50
exportMethod · 0.50
setValueMethod · 0.50
setAsSlotMethod · 0.50
upgradePropsReducerFunction · 0.50
getLowCodeComponentPropsFunction · 0.50

Calls 1

isObjectFunction · 0.90

Tested by 1

upgradePropsReducerFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…