From 60e3a93a30ae743517b35f5b2e246c28204f3426 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 3 Oct 2016 20:33:39 -0700 Subject: [PATCH] Simplify `_.isArguments`. --- lodash.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 39af3c950..7a9d85e93 100644 --- a/lodash.js +++ b/lodash.js @@ -11187,9 +11187,7 @@ * // => false */ function isArguments(value) { - // Safari 8.1 makes `arguments.callee` enumerable in strict mode. - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); + return isArrayLikeObject(value) && objectToString.call(value) == argsTag; } /**