diff --git a/lib/chai-exclude.js b/lib/chai-exclude.js index 9ef14f2..ccd8310 100644 --- a/lib/chai-exclude.js +++ b/lib/chai-exclude.js @@ -97,7 +97,7 @@ module.exports = (chai, utils) => { * @returns {Boolean} */ function isObject (arg) { - return arg instanceof Object && arg.constructor === Object + return arg === Object(arg) && Object.prototype.toString.call(arg) !== '[object Array]' } /**