MCPcopy Create free account
hub / github.com/Lemoncode/fonk / baseIsNative

Function baseIsNative

src/helpers/set.js:494–501  ·  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

492 * else `false`.
493 */
494function baseIsNative(value) {
495 if (!isObject(value) || isMasked(value)) {
496 return false;
497 }
498 var pattern =
499 isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
500 return pattern.test(toSource(value));
501}
502
503/**
504 * The base implementation of `_.set`.

Callers 1

getNativeFunction · 0.70

Calls 5

isObjectFunction · 0.70
isMaskedFunction · 0.70
isFunctionFunction · 0.70
isHostObjectFunction · 0.70
toSourceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…