mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove noArgsClass check from isPlainObject.
Former-commit-id: bab7a68e8eaa21679b33b2ab70a9f8e47758ebc1
This commit is contained in:
@@ -749,9 +749,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
|
||||
// avoid non-objects and false positives for `arguments` objects
|
||||
var result = false;
|
||||
if (!(value && typeof value == 'object') || (noArgsClass && isArguments(value))) {
|
||||
if (!(value && typeof value == 'object') || isArguments(value)) {
|
||||
return result;
|
||||
}
|
||||
// IE < 9 presents DOM nodes as `Object` objects except they have `toString`
|
||||
|
||||
Reference in New Issue
Block a user