MCPcopy
hub / github.com/dunky11/react-saas-template / isFunction

Function isFunction

src/shared/functions/toArray.js:724–729  ·  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 * * _.isFunction(_); * // => true * * _.isFun

(value)

Source from the content-addressed store, hash-verified

722 * // => false
723 */
724function isFunction(value) {
725 // The use of `Object#toString` avoids issues with the `typeof` operator
726 // in Safari 8-9 which returns 'object' for typed array and other constructors.
727 const tag = isObject(value) ? objectToString.call(value) : "";
728 return tag === funcTag || tag === genTag;
729}
730
731/**
732 * Checks if `value` is a valid array-like length.

Callers 2

baseIsNativeFunction · 0.85
isArrayLikeFunction · 0.85

Calls 1

isObjectFunction · 0.85

Tested by

no test coverage detected