We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d430b84 + 9af3504 commit 997946bCopy full SHA for 997946b
src/lib/is_plain_object.js
@@ -21,6 +21,6 @@ module.exports = function isPlainObject(obj) {
21
22
return (
23
Object.prototype.toString.call(obj) === '[object Object]' &&
24
- Object.getPrototypeOf(obj) === Object.prototype
+ Object.getPrototypeOf(obj).hasOwnProperty('hasOwnProperty')
25
);
26
};
0 commit comments