Skip to content

Commit f1c0c40

Browse files
Allow storing of Object.create(null) data in Firestore (#193)
1 parent e4a3ee7 commit f1c0c40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

handwritten/firestore/src/document.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,8 @@ function isPlainObject(input) {
16501650
return (
16511651
typeof input === 'object' &&
16521652
input !== null &&
1653-
Object.getPrototypeOf(input) === Object.prototype
1653+
(Object.getPrototypeOf(input) === Object.prototype ||
1654+
Object.getPrototypeOf(input) === null)
16541655
);
16551656
}
16561657

0 commit comments

Comments
 (0)