diff --git a/src/lib/is_plain_object.js b/src/lib/is_plain_object.js index 2a14a64115f..50f16d8883e 100644 --- a/src/lib/is_plain_object.js +++ b/src/lib/is_plain_object.js @@ -21,6 +21,6 @@ module.exports = function isPlainObject(obj) { return ( Object.prototype.toString.call(obj) === '[object Object]' && - Object.getPrototypeOf(obj) === Object.prototype + Object.getPrototypeOf(obj).hasOwnProperty('hasOwnProperty') ); };