Add Safari 8.1 note to _.isArguments. [ci skip]

This commit is contained in:
John-David Dalton
2015-09-03 20:05:39 -07:00
parent 38a802fed3
commit 824d3b75f9

View File

@@ -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);
}