diff --git a/src/utils/common.ts b/src/utils/common.ts index 58de2b6f..f41ee0aa 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -46,6 +46,10 @@ export function isPlainObject(value: any): boolean { } const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor + + if (Ctor === Object) + return true + return ( typeof Ctor == "function" && Function.toString.call(Ctor) === objectCtorString