Simplify _.isArguments.

This commit is contained in:
John-David Dalton
2016-10-03 20:33:39 -07:00
parent 158f2839fd
commit 60e3a93a30

View File

@@ -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;
}
/**