* Checks if `value` is a native function. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, else `false`. * @example * * _.isNative(Array.prototype.push);
(value)
| 10274 | * // => false |
| 10275 | */ |
| 10276 | function isNative(value) { |
| 10277 | if (value == null) { |
| 10278 | return false; |
| 10279 | } |
| 10280 | if (objToString.call(value) == funcTag) { |
| 10281 | return reIsNative.test(fnToString.call(value)); |
| 10282 | } |
| 10283 | return isObjectLike(value) && reIsHostCtor.test(value); |
| 10284 | } |
| 10285 | |
| 10286 | /** |
| 10287 | * Checks if `value` is `null`. |
no test coverage detected