(value: any)
| 2 | * @deprecated use same function from '@alilc/lowcode-utils' instead |
| 3 | */ |
| 4 | export 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…