MCPcopy Create free account
hub / github.com/RubyLouvre/anu / baseIsNative

Function baseIsNative

test/babel.js:51490–51496  ·  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

51488 * else `false`.
51489 */
51490 function baseIsNative(value) {
51491 if (!isObject(value) || isMasked(value)) {
51492 return false;
51493 }
51494 var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
51495 return pattern.test(toSource(value));
51496 }
51497
51498 module.exports = baseIsNative;
51499

Callers 1

getNativeFunction · 0.85

Calls 4

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

Tested by

no test coverage detected