From 38a802fed35672ae9abd38122fb63315c8f87c71 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 3 Sep 2015 19:17:11 -0700 Subject: [PATCH] Fix `_.isArguments` in Safari 8.1. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index ad7744771..a0b4e38d1 100644 --- a/lodash.js +++ b/lodash.js @@ -8149,8 +8149,8 @@ * // => false */ function isArguments(value) { - return isObjectLike(value) && isArrayLike(value) && - hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); + return isObjectLike(value) && isArrayLike(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objToString.call(value) == argsTag); } /**