We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4a3ee7 commit f1c0c40Copy full SHA for f1c0c40
1 file changed
handwritten/firestore/src/document.js
@@ -1650,7 +1650,8 @@ function isPlainObject(input) {
1650
return (
1651
typeof input === 'object' &&
1652
input !== null &&
1653
- Object.getPrototypeOf(input) === Object.prototype
+ (Object.getPrototypeOf(input) === Object.prototype ||
1654
+ Object.getPrototypeOf(input) === null)
1655
);
1656
}
1657
0 commit comments