* The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`.
(value)
| 488 | * else `false`. |
| 489 | */ |
| 490 | function baseIsNative(value) { |
| 491 | if (!isObject(value) || isMasked(value)) { |
| 492 | return false; |
| 493 | } |
| 494 | const pattern = |
| 495 | isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; |
| 496 | return pattern.test(toSource(value)); |
| 497 | } |
| 498 | |
| 499 | /** |
| 500 | * The base implementation of `_.toString` which doesn't convert nullish |
no test coverage detected
searching dependent graphs…