We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Object
Function.toString
1 parent 5cb208b commit 07575f3Copy full SHA for 07575f3
src/utils/common.ts
@@ -46,6 +46,10 @@ export function isPlainObject(value: any): boolean {
46
}
47
const Ctor =
48
Object.hasOwnProperty.call(proto, "constructor") && proto.constructor
49
+
50
+ if (Ctor === Object)
51
+ return true
52
53
return (
54
typeof Ctor == "function" &&
55
Function.toString.call(Ctor) === objectCtorString
0 commit comments