From 20127f6a2a54393d8d0baaf0407ed2b8566903f6 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 28 May 2015 16:32:19 -0400 Subject: [PATCH] Re-fix `_.isFunction` in old Safari. --- lodash.src.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index f8832a5bd..b37ba6a88 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -8700,8 +8700,7 @@ // The use of `Object#toString` avoids issues with the `typeof` operator // in older versions of Chrome and Safari which return 'function' for regexes // and Safari 8 equivalents which return 'object' for typed array constructors. - var type = typeof value; - return type == 'function' || (type == 'object' && objToString.call(value) == funcTag); + return isObject(value) && objToString.call(value) == funcTag; } /**