mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Add Safari 8.1 note to _.isArguments. [ci skip]
This commit is contained in:
@@ -8149,6 +8149,7 @@
|
||||
* // => false
|
||||
*/
|
||||
function isArguments(value) {
|
||||
// Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
|
||||
return isObjectLike(value) && isArrayLike(value) && hasOwnProperty.call(value, 'callee') &&
|
||||
(!propertyIsEnumerable.call(value, 'callee') || objToString.call(value) == argsTag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user