diff --git a/lodash.js b/lodash.js index 5f2327b43..956985fe7 100644 --- a/lodash.js +++ b/lodash.js @@ -744,8 +744,9 @@ * @returns {Boolean} Returns `true` if the `value` is a plain `Object` object, else `false`. */ function isPlainObject(value) { + // avoid non-objects and false positives for `arguments` objects in IE < 9 var result = false; - if (!(value && typeof value == 'object')) { + if (!(value && typeof value == 'object') || (noArgumentsClass && isArguments(value))) { return result; } // IE < 9 presents DOM nodes as `Object` objects except they have `toString`