mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Cleanup _.isNative.
This commit is contained in:
@@ -10855,13 +10855,11 @@
|
||||
* // => false
|
||||
*/
|
||||
function isNative(value) {
|
||||
if (value == null) {
|
||||
if (!isObject(value)) {
|
||||
return false;
|
||||
}
|
||||
if (isObjectLike(value)) {
|
||||
return (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
||||
}
|
||||
return reIsNative.test(toSource(value));
|
||||
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||
return pattern.test(toSource(value));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user