mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Simplify support.nonEnumArgs and increase code coverage.
This commit is contained in:
@@ -1001,8 +1001,7 @@
|
|||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) &&
|
support.nonEnumArgs = !(hasOwnProperty.call(arguments, 1) && propertyIsEnumerable.call(arguments, 1));
|
||||||
propertyIsEnumerable.call(arguments, argsKey));
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
support.nonEnumArgs = true;
|
support.nonEnumArgs = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user