From 7e326b84316603fd78907cb80f79c14b02f4f9b2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 27 Jul 2014 15:52:23 -0700 Subject: [PATCH] Simplify `support.nonEnumArgs` and increase code coverage. --- lodash.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 7d0f3d484..a3832681a 100644 --- a/lodash.js +++ b/lodash.js @@ -1001,8 +1001,7 @@ * @type boolean */ try { - support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) && - propertyIsEnumerable.call(arguments, argsKey)); + support.nonEnumArgs = !(hasOwnProperty.call(arguments, 1) && propertyIsEnumerable.call(arguments, 1)); } catch(e) { support.nonEnumArgs = true; }