MCPcopy
hub / github.com/vercel/hyper / isFunction

Function isFunction

bin/yarn-standalone.js:19368–19376  ·  view source on GitHub ↗

* Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.is

(value)

Source from the content-addressed store, hash-verified

19366 * // => false
19367 */
19368 function isFunction(value) {
19369 if (!isObject(value)) {
19370 return false;
19371 }
19372 // The use of `Object#toString` avoids issues with the `typeof` operator
19373 // in Safari 9 which returns 'object' for typed arrays and other constructors.
19374 var tag = baseGetTag(value);
19375 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
19376 }
19377
19378 /**
19379 * Checks if `value` is an integer.

Callers 8

baseFunctionsFunction · 0.85
baseIsNativeFunction · 0.85
baseMergeDeepFunction · 0.85
isArrayLikeFunction · 0.85
resultFunction · 0.85
transformFunction · 0.85
mixinFunction · 0.85
isNativeFunction · 0.85

Calls 2

isObjectFunction · 0.85
baseGetTagFunction · 0.85

Tested by

no test coverage detected