mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Remove support.argsObject.
This commit is contained in:
11
lodash.js
11
lodash.js
@@ -839,15 +839,6 @@
|
||||
*/
|
||||
support.argsClass = toString.call(arguments) == argsClass;
|
||||
|
||||
/**
|
||||
* Detect if `arguments` objects are `Object` objects
|
||||
* (all but Narwhal and Opera < 10.5).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
|
||||
|
||||
/**
|
||||
* Detect if `name` or `message` properties of `Error.prototype` are
|
||||
* enumerable by default (IE < 9, Safari < 5.1).
|
||||
@@ -1811,7 +1802,7 @@
|
||||
// treat string primitives and their corresponding object instances as equal
|
||||
return value == String(other);
|
||||
}
|
||||
if (!support.argsObject) {
|
||||
if (!support.argsClass) {
|
||||
valIsArg = isArguments(value);
|
||||
othIsArg = isArguments(other);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user