From 20fa52309c37b238fc2b62bfa2a290d4ab9f0679 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 29 Sep 2016 14:54:09 -0700 Subject: [PATCH] Add `proxyTag` check to `_.isFunction` for Safari 10 support of the `Proxy` constructor. [closes #2689] --- lodash.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 2a0b9bd27..369a1fc8d 100644 --- a/lodash.js +++ b/lodash.js @@ -95,6 +95,7 @@ numberTag = '[object Number]', objectTag = '[object Object]', promiseTag = '[object Promise]', + proxyTag = '[object Proxy]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', @@ -11570,7 +11571,7 @@ // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 8-9 which returns 'object' for typed array and other constructors. var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; + return tag == funcTag || tag == genTag || tag == proxyTag; } /**