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.
1 parent 0e8a7b0 commit 8166351Copy full SHA for 8166351
src/utils/isPlainObject.ts
@@ -10,5 +10,5 @@ export default function isPlainObject(obj: any): obj is object {
10
proto = Object.getPrototypeOf(proto)
11
}
12
13
- return Object.getPrototypeOf(obj) === proto
+ return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null
14
0 commit comments