Use _.isFunction in _.isNative.

This commit is contained in:
jdalton
2015-06-02 19:35:47 -07:00
parent 55af8b4cb4
commit f402dbd1e3

View File

@@ -8915,7 +8915,7 @@
if (value == null) {
return false;
}
if (objToString.call(value) == funcTag) {
if (isFunction(value)) {
return reIsNative.test(fnToString.call(value));
}
return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);