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