Tweak _.isFunction fallback check.

This commit is contained in:
John-David Dalton
2014-11-14 11:35:23 -08:00
parent 52653f73b9
commit 056ff4b6ea

View File

@@ -7411,7 +7411,7 @@
return typeof value == 'function' || false;
}
// Fallback for environments that return incorrect `typeof` operator results.
if (isFunction(/x/) || !Uint8Array || !isFunction(Uint8Array)) {
if (isFunction(/x/) || (Uint8Array && !isFunction(Uint8Array))) {
isFunction = function(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in older versions of Chrome and Safari which return 'function' for