@redhare/lowcode-types
Version:
Types for Ali lowCode engine
10 lines • 316 B
JavaScript
/**
* @deprecated use same function from '@redhare/lowcode-utils' instead
*/
export function isPlainObject(value) {
if (typeof value !== 'object') {
return false;
}
var proto = Object.getPrototypeOf(value);
return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null;
}