MCPcopy
hub / github.com/lodash/lodash / baseIsNative

Function baseIsNative

lodash.js:3456–3462  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

3454 * else `false`.
3455 */
3456 function baseIsNative(value) {
3457 if (!isObject(value) || isMasked(value)) {
3458 return false;
3459 }
3460 var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
3461 return pattern.test(toSource(value));
3462 }
3463
3464 /**
3465 * The base implementation of `_.isRegExp` without Node.js optimizations.

Callers 3

getNativeFunction · 0.85
isNativeFunction · 0.85
test.jsFile · 0.85

Calls 4

isObjectFunction · 0.85
isMaskedFunction · 0.85
isFunctionFunction · 0.85
toSourceFunction · 0.85

Tested by

no test coverage detected