mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Use _.isFunction in _.isNative.
This commit is contained in:
@@ -8915,7 +8915,7 @@
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (objToString.call(value) == funcTag) {
|
if (isFunction(value)) {
|
||||||
return reIsNative.test(fnToString.call(value));
|
return reIsNative.test(fnToString.call(value));
|
||||||
}
|
}
|
||||||
return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user