mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Simplify _.isArguments.
This commit is contained in:
@@ -11187,9 +11187,7 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isArguments(value) {
|
function isArguments(value) {
|
||||||
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
return isArrayLikeObject(value) && objectToString.call(value) == argsTag;
|
||||||
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
|
|
||||||
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user