From 056ff4b6ea96a2039caf7150ac5874f750c68a76 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 14 Nov 2014 11:35:23 -0800 Subject: [PATCH] Tweak `_.isFunction` fallback check. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index f010fc5e9..cc849c31b 100644 --- a/lodash.js +++ b/lodash.js @@ -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