MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isNative

Function isNative

lib/web/jshint.js:10276–10284  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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`.

Callers 6

runInContextFunction · 0.85
setSpeciesFunction · 0.85
$defineFunction · 0.85
polyfill.jsFile · 0.85
wrapObjectMethodFunction · 0.85
getCollectionFunction · 0.85

Calls 3

isObjectLikeFunction · 0.85
callMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected