MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / isPlainObject

Function isPlainObject

packages/types/src/deprecated/isPlainObject.ts:4–10  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

2 * @deprecated use same function from '@alilc/lowcode-utils' instead
3 */
4export function isPlainObject(value: any): value is Record<string, unknown> {
5 if (typeof value !== 'object') {
6 return false;
7 }
8 const proto = Object.getPrototypeOf(value);
9 return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null;
10}

Callers 1

isTitleConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…